Skip to content

Glossary: Go Beyond the Basics

exit code

Also written: os.Exit

A number a program returns when it ends. 0 means success, and non-zero such as 1 tells scripts it failed.

Where the book teaches it