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
+46.7k Golang : Encode image to base64 example
+16.5k Golang : How to extract links from web page ?
+26.1k Golang : Daemonizing a simple web server process example
+31.1k Golang : Interpolating or substituting variables in string examples
+6.2k Golang : How to verify input is rune?
+5.9k Fix yum-complete-transaction error
+5.5k Golang : Pad file extension automagically
+8.6k Golang : Convert word to its plural form example
+10.1k Golang : Turn string or text file into slice example
+26.4k Golang : Convert IP address string to long ( unsigned 32-bit integer )
+5.6k Unix/Linux/MacOSx : How to remove an environment variable ?