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
+14.9k Golang : invalid character ',' looking for beginning of value
+12k Golang : Add ASCII art to command line application launching process
+8.8k Golang : How to get ECDSA curve and parameters data?
+15.2k Golang : Convert date format and separator yyyy-mm-dd to dd-mm-yyyy
+11.1k Golang : Secure file deletion with wipe example
+33.8k Golang : How to stream file to client(browser) or write to http.ResponseWriter?
+25.6k Golang : Convert(cast) string to uint8 type and back to string
+5.3k Fix fatal error: evacuation not done in time problem
+13.5k Golang : Fix image: unknown format error
+5.2k Unix/Linux : How to find out the hard disk size?