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
+13.1k Golang : How to determine if user agent is a mobile device example
+5.1k PageSpeed : Clear or flush cache on web server
+13.7k Golang : Get all local users and print out their home directory, description and group id
+3.7k Chrome : How to block socketloop.com links in Google SERP?
+37.5k Golang : Convert to io.ReadSeeker type
+10.6k Golang : Convert decimal number(integer) to IPv4 address
+25.3k Golang : Force your program to run with root permissions
+22.9k Golang : How to print rune, unicode, utf-8 and non-ASCII CJK(Chinese/Japanese/Korean) characters?
+6.4k Golang : How to convert strange string to JSON with json.MarshalIndent
+6.4k Golang : Get YouTube playlist
+31.3k Golang : Smarter Error Handling with strings.Contains()