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
+22.7k Generate checksum for a file in Go
+9.6k Golang : Validate IPv6 example
+24.1k Golang : Use regular expression to validate domain name
+8.2k Golang : Check from web if Go application is running or not
+20.2k Golang : How to run your code only once with sync.Once object
+6.8k Golang : Check if password length meet the requirement
+14.1k Golang: Pad right or print ending(suffix) zero or spaces in fmt.Printf example
+19.3k Golang : Check if directory exist and create if does not exist
+13.7k Android Studio : Password input and reveal password example
+4.7k Mac OSX : Get disk partitions' size, type and name
+7.7k Golang : Set horizontal, vertical scroll bars policies and disable interaction on Qt image
+12.3k Golang : List running EC2 instances and descriptions