Skip to content

Glossary: Go in Practice

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.

Where the book teaches it

Related terms

Graceful shutdown