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
+17.7k Convert JSON to CSV in Golang
+20.8k Android Studio : AlertDialog and EditText to get user string input example
+24.1k Golang : Find biggest/largest number in array
+4.7k Linux : sudo yum updates not working
+5.7k Python : Print unicode escape characters and string
+8.3k Swift : Convert (cast) Character to Integer?
+6.3k Golang : Calculate US Dollar Index (DXY)
+29.6k Golang : Saving(serializing) and reading file with GOB
+13.2k Golang : Skip blank/empty lines in CSV file and trim whitespaces example
+4.8k JavaScript: Add marker function on Google Map
+5.5k How to check with curl if my website or the asset is gzipped ?
+8.9k Golang : Sort lines of text example