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
+12.9k Golang : Convert int(year) to time.Time type
+18.2k Golang : Convert IPv4 address to decimal number(base 10) or integer
+19.3k Golang : Check whether a network interface is up on your machine
+27k Golang : Force your program to run with root permissions
+17.9k How to enable MariaDB/MySQL logs ?
+3.9k Golang : Switch Redis database redis.NewClient
+12.9k Golang : Convert IPv4 address to packed 32-bit binary format
+19.1k Golang : Clearing slice
+19.3k Golang : Delete item from slice based on index/key position
+3.8k Java : Random alphabets, alpha-numeric or numbers only string generator
+10.7k Golang : Simple File Server