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
+4.5k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+15.7k Golang : Get the IPv4 and IPv6 addresses for a specific network interface
+10.2k Golang : How to determine a prime number?
+16.5k Golang : Qt image viewer example
+11k Golang : Clean formatting/indenting or pretty print JSON result
+10.8k How to tell if a binary(executable) file or web application is built with Golang?
+7.4k Golang : Number guessing game with user input verification example
+5.9k Golang : Gargish-English language translator
+13.2k Golang : Chunk split or divide a string into smaller chunk example
+9k Golang : List available AWS regions
+12.4k Golang : Date and Time formatting
+8.6k Facebook : Getting the friends list with PHP return JSON format