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
+7.9k Golang : io.Reader causing panic: runtime error: invalid memory address or nil pointer dereference
+35.6k Upload multiple files with Go
+23.2k Golang : GORM read from database example
+6.1k Golang : Array mapping with Interface
+12.9k Golang : Google Drive API upload and rename example
+4.3k Gogland : Datasource explorer
+6.8k Javascript : Put image into Chrome browser's console
+4.3k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+9.4k Golang : How to delete element(data) from map ?
+4.3k Golang : How to deal with configuration data?
+5.2k Golang : Detect face in uploaded photo like GPlus
+3.8k Nginx and PageSpeed build from source CentOS example