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.3k Javascript : Change page title to get viewer attention
+5.9k Golang : How to call function inside template with template.FuncMap
+7.6k Linux/Unix : fatal: the Postfix mail system is already running
+12.7k Golang : Fix cannot use buffer (type bytes.Buffer) as type io.Writer(Write method has pointer receiver) error
+10.3k Golang : GTK Input dialog box examples
+23.9k Golang : Convert uint value to string type
+14.2k Golang : Get current time from the Internet time server(ntp) example
+8.3k Golang : Qt Yes No and Quit message box example
+10.5k Golang : Verify Linux user password again before executing a program example
+5.1k Golang : Extract XML attribute data with attr field tag example
+8.4k Golang : Format strings to SEO friendly URL example