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.8k Golang : Save webcamera frames to video file
+7.9k Golang : HTTP Server Example
+5.5k List of Golang XML tutorials
+15.8k Golang : Get sub string example
+23.3k Find and replace a character in a string in Go
+9.1k Golang : Detect Pascal, Kebab, Screaming Snake and Camel cases
+33.3k Golang : How to check if slice or array is empty?
+11.5k Golang : Verify Linux user password again before executing a program example
+3.4k Golang : Switch Redis database redis.NewClient
+7.9k Android Studio : Rating bar example
+18.2k Golang : Example for RSA package functions
+13.1k Android Studio : Password input and reveal password example