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
+11.6k Golang : Change date format to yyyy-mm-dd
+10.2k Golang : Identifying Golang HTTP client request
+21.3k Golang : Convert(cast) string to rune and back to string example
+19.4k Golang : Check if directory exist and create if does not exist
+14.7k Golang : Overwrite previous output with count down timer
+8.1k Setting $GOPATH environment variable for Unix/Linux and Windows
+5.5k Gogland : Datasource explorer
+7.7k Golang : How to handle file size larger than available memory panic issue
+37.8k Golang : Comparing date or timestamp
+12.9k Golang : Convert int(year) to time.Time type
+25.5k Golang : Convert long hexadecimal with strconv.ParseUint example
+28.8k Golang : Read, Write(Create) and Delete Cookie example