Skip to content

Glossary: Go Basics

Command-line arguments

Also written: command line arguments, os.Args

The words typed after a program's name, stored as a slice of strings in `os.Args`. Index 0 is the program itself, so your arguments start at index 1.

Where the book teaches it

Related terms

os.Args and os.Exit