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.1k Golang : How to add color to string?
+10.9k Golang : Generate random elements without repetition or duplicate
+22k Golang : Repeat a character by multiple of x factor
+11k Golang : Web routing/multiplex example
+27.3k Golang : Convert integer to binary, octal, hexadecimal and back to integer
+9.3k Golang : Find the length of big.Int variable example
+9.8k Golang : Ordinal and Ordinalize a given number to the English ordinal numeral
+11.6k Golang : convert(cast) float to string
+11k CodeIgniter : How to check if a session exist in PHP?
+17.3k Golang : Linked list example
+10.5k Golang : Resolve domain name to IP4 and IP6 addresses.