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
+14.2k Golang : How to shuffle elements in array or slice?
+18.8k Golang : Padding data for encryption and un-padding data for decryption
+19.8k Golang : Convert(cast) bytes.Buffer or bytes.NewBuffer type to io.Reader
+7.5k Golang : Command line ticker to show work in progress
+32.2k Golang : Copy directory - including sub-directories and files
+24.4k Golang : How to print rune, unicode, utf-8 and non-ASCII CJK(Chinese/Japanese/Korean) characters?
+5.4k Golang : Stop goroutine without channel
+9.7k Golang : Sort and reverse sort a slice of integers
+11.3k Golang : Format numbers to nearest thousands such as kilos millions billions and trillions
+8.9k Golang : How to use Gorilla webtoolkit context package properly
+24.2k Golang : How to validate URL the right way
+5.9k Fix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)