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.2k PHP : Shuffle to display different content or advertisement
+6.8k Golang : How to iterate a slice without using for loop?
+9.2k Golang : Validate IPv6 example
+11.3k Golang : Convert(cast) float to int
+13.8k Android Studio : Use image as AlertDialog title with custom layout example
+8.6k Golang : Handle sub domain with Gin
+10.9k Use systeminfo to find out installed Windows Hotfix(s) or updates
+9k Golang : How to protect your source code from client, hosting company or hacker?
+5.6k PHP : How to check if an array is empty ?
+12.7k Golang : Skip blank/empty lines in CSV file and trim whitespaces example
+5k Javascript : Shuffle or randomize array example