Golang : alternative to os.Exit() function
Just a quick note on the alternative to os.Exit()
function, which is the syscall.Exit()
function. Both functions behave the same as well and in fact underneath os.Exit()
function is syscall.Exit()
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+11.2k Golang : Validate email address
+21.1k Golang : How to read JPG(JPEG), GIF and PNG files ?
+8.4k Golang : Quadratic example
+9.1k Golang : Read file and convert content to string
+3.9k Golang : A program that contain another program and executes it during run-time
+4.1k Linux/Unix/MacOSX : Find out which application is listening to port 80 or use which IP version
+16.3k Google Chrome : Your connection to website is encrypted with obsolete cryptography
+6.4k Golang : Example of how to detect which type of script a word belongs to
+4.6k How to check with curl if my website or the asset is gzipped ?
+4.1k Golang : micron to centimeter example
+5.9k Golang : Normalize email to prevent multiple signups example
+8k Golang : Inject/embed Javascript before sending out to browser example