os.Exit
Also written: exit status
A Go function that ends the program at once with a status code, where non-zero means failure. It skips deferred calls, so anything that needs closing, such as a database, must be closed by hand before calling it.
Also written: exit status
A Go function that ends the program at once with a status code, where non-zero means failure. It skips deferred calls, so anything that needs closing, such as a database, must be closed by hand before calling it.