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
+8.9k Android Studio : Indicate progression with ProgressBar example
+13.2k Golang : Get constant name from value
+7.2k Golang : Create zip/ePub file without compression(use Store algorithm)
+7k Golang : Null and nil value
+5.5k Swift : Get substring with rangeOfString() function example
+5.8k Fix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)
+3.1k Golang : Fix go-cron set time not working issue
+12.8k Swift : Convert (cast) Int to String ?
+8.6k Golang : Gaussian blur on image and camera video feed examples
+14.2k Golang : Send email with attachment(RFC2822) using Gmail API example
+17.2k Golang : Linked list example
+15.3k Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content