replace

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: 6 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 {
	// Replacements describes a list of replacements that are applied on the kparam.
	Replacements []Replacement `mapstructure:"replacements"`
	// Enabled indicates whether this transformer is enabled
	Enabled bool `mapstructure:"enabled"`
}

Config stores the configuration for the replace transformer

type Replacement

type Replacement struct {
	Kpar string `mapstructure:"kparam"`
	Old  string `mapstructure:"old"`
	New  string `mapstructure:"new"`
}

Replacement defines the string replacement config for a specific kparam.

Jump to

Keyboard shortcuts

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