Go Learning Notes
Command-Line Arguments in Go
Mental model
Go exposes command-line arguments through:
os.Args
os.Args is a []string.
os.Args[0] is the program name/path.
os.Args[1:] contains the arguments supplied
amankumar29.hashnode.dev15 min read