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
+14k Golang : Find location by IP address and display with Google Map
+7.4k Golang: Prevent over writing file with md5 hash
+8.3k Golang : Temperatures conversion example
+5.2k Golang : Selection sort example
+13.8k Golang : Get HTTP protocol version example
+15.1k Golang : How to extract links from web page ?
+9.2k Golang : How to tokenize source code with text/scanner package?
+16.4k Golang : [json: cannot unmarshal object into Go value of type]
+5.6k Golang : Embedded or data bundling example
+53.3k Golang : Unmarshal JSON from http response
+9k Golang : Channels and buffered channels examples
+17.2k Golang : How to get hour, minute, second from time?