How Go's Standard Library Implements --
Trace a command line from os.Args into Go's flag package to see exactly where -- stops flag parsing and how the remaining arguments are preserved.
Trace a command line from os.Args into Go's flag package to see exactly where -- stops flag parsing and how the remaining arguments are preserved.