type setOptions … var setLong … var setExample … // NewCmdConfigSet returns a Command instance for 'config set' sub command func NewCmdConfigSet(out io.Writer, configAccess clientcmd.ConfigAccess) *cobra.Command { … } func (o setOptions) run() error { … } func (o *setOptions) complete(cmd *cobra.Command) error { … } func (o setOptions) validate() error { … } func modifyConfig(curr reflect.Value, steps *navigationSteps, propertyValue string, unset bool, setRawBytes bool) error { … }