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.8k Golang : Get YouTube playlist
+5.9k Golang : Use regular expression to get all upper case or lower case characters example
+18.3k Golang : dial tcp: too many colons in address
+8.2k Get form post value in Go
+24.3k Golang : missing Git command
+15.1k Golang : Check if directory exist and create if does not exist
+5.9k Golang : Qt Yes No and Quit message box example
+6.2k Your page has meta tags in the body instead of the head
+3k Golang : fmt.Println prints out empty data from struct
+14k Golang : Clean up null characters from input data
+13.6k Golang : Logging with logrus
+5.6k Swift : Convert (cast) String to Float