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
+16.3k Golang : How to remove certain lines from a file
+8.7k Golang : Load ASN1 encoded DSA public key PEM file example
+4.5k Golang : Intercept, inject and replay HTTP traffics from web server
+4.8k Golang : Error handling methods
+7.3k Golang : How to check variable or object type during runtime?
+7.6k Golang : How to capture return values from goroutines?
+17.5k Unmarshal/Load CSV record into struct in Go
+12.1k Golang : How to get a user home directory path?
+4.3k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+7.7k Golang : Combine slices but preserve order example