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
+4.6k Golang : Generate Interleaved 2 inch by 5 inch barcode
+16.4k Golang : Multi threading or run two processes or more example
+10.8k Golang : Handle API query by curl with Gorilla Queries example
+10.1k Golang : Generate random elements without repetition or duplicate
+6.4k Golang : Gorrila mux.Vars() function example
+5.4k Golang & Javascript : How to save cropped image to file on server
+6.2k Golang : Levenshtein distance example
+12.4k Golang : error parsing regexp: invalid or unsupported Perl syntax
+8.4k Golang : Create and shuffle deck of cards example
+10.2k Golang : How to determine a prime number?
+6.7k Javascript : Push notifications to browser with Push.js
+5.4k Linux/Unix : Commands that you need to be careful about