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
+15.4k Golang : Get query string value on a POST request
+24.7k Golang : How to validate URL the right way
+24.6k Golang : Change file read or write permission example
+24.1k Golang : Fix type interface{} has no field or no methods and type assertions example
+7.7k SSL : How to check if current certificate is sha1 or sha2 from command line
+12.8k Golang : Sort and reverse sort a slice of bytes
+6.4k PHP : How to handle URI or URL with non-ASCII characters such as Chinese/Japanese/Korean(CJK) ?
+11.3k Golang : Fix go.exe is not compatible with the version of Windows you're running
+9.2k Golang : io.Reader causing panic: runtime error: invalid memory address or nil pointer dereference
+11.2k How to test Facebook App on localhost ?
+17.9k Golang : Iterate linked list example
+9.3k Golang : Generate Codabar