var BuildAsmflags … var BuildGcflags … var BuildLdflags … var BuildGccgoflags … type PerPackageFlag … type ppfValue … // Set is called each time the flag is encountered on the command line. func (f *PerPackageFlag) Set(v string) error { … } // set is the implementation of Set, taking a cwd (current working directory) for easier testing. func (f *PerPackageFlag) set(v, cwd string) error { … } func (f *PerPackageFlag) String() string { … } // Present reports whether the flag appeared on the command line. func (f *PerPackageFlag) Present() bool { … } // For returns the flags to use for the given package. func (f *PerPackageFlag) For(p *Package) []string { … }