rename

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL