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
+6.5k Golang : Spell checking with ispell example
+18.6k Golang : Find IP address from string
+23.6k Find and replace a character in a string in Go
+4.6k MariaDB/MySQL : How to get version information
+19.1k Mac OSX : Homebrew and Golang
+5.3k Golang : Reclaim memory occupied by make() example
+7.8k Golang : Reverse a string with unicode
+16.2k Golang : Loop each day of the current month example
+6.8k Get Facebook friends working in same company
+12.2k Golang : Get month name from date example
+4.3k Golang : Valued expressions and functions example