type Args … func New() *Args { … } func (args *Args) AddFlags(fs *pflag.FlagSet, inputBase string) { … } func (args *Args) Validate() error { … } // GroupVersionPackages returns a map from GroupVersion to the package with the types.go. func (args *Args) GroupVersionPackages() map[types.GroupVersion]string { … } func mapFlagName(from, to string, old func(fs *pflag.FlagSet, name string) pflag.NormalizedName) func(fs *pflag.FlagSet, name string) pflag.NormalizedName { … }