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.5k Golang : Executing and evaluating nested loop in html template
+11k Golang : Delay or limit HTTP requests example
+18.1k Golang : Read binary file into memory
+4.8k Linux : How to set root password in Linux Mint
+5k Golang : The Tao of importing package
+9.6k Golang : Ordinal and Ordinalize a given number to the English ordinal numeral
+19k Golang : Execute shell command
+7.4k Gogland : Where to put source code files in package directory for rookie
+10.2k Golang : Allow Cross-Origin Resource Sharing request
+24.9k Golang : Convert uint value to string type
+7.8k How to show different content from website server when AdBlock is detected?
+9.8k Golang : Bcrypting password