Documentation ¶ Index ¶ func AddFlags(flags *pflag.FlagSet) type Config type Rename Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AddFlags ¶ func AddFlags(flags *pflag.FlagSet) AddFlags registers persistent flags. Types ¶ type Config ¶ type Config struct { // Kparams is the list of parameters that will be renamed. Kparams []Rename // Enabled indicates whether this transformer is enabled. Enabled bool } Config stores the configuration of the rename transformer. type Rename ¶ type Rename struct { Old string `mapstructure:"old"` New string `mapstructure:"new"` } Rename describes the configuration for the old/new parameter name. Source Files ¶ View all Source files config.go rename.go Click to show internal directories. Click to hide internal directories.