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
+26.1k Mac/Linux and Golang : Fix bind: address already in use error
+6.3k Golang : Process non-XML/JSON formatted ASCII text file example
+22.3k Golang : Securing password with salt
+14.5k Golang : Find network of an IP address
+8.2k Golang : HttpRouter multiplexer routing example
+6.8k Golang : Humanize and Titleize functions
+17.7k Golang : [json: cannot unmarshal object into Go value of type]
+19.3k Golang : Populate dropdown with html/template example
+22.2k Golang : Match strings by wildcard patterns with filepath.Match() function
+13.5k Golang : Verify token from Google Authenticator App
+19.3k Golang : Get RGBA values of each image pixel
+18.4k Golang : How to remove certain lines from a file