transformer

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadTransform = errors.New("Path transformation list not even. " +
	"Transformations must be specified as pairs.")

ErrBadTransform indicates an uneven transformation list

Functions

This section is empty.

Types

type PathTransformer

type PathTransformer struct {
	// contains filtered or unexported fields
}

PathTransformer is an instance of the path transformer

func New

func New(str string) (*PathTransformer, error)

New returns a new path transformer

func (*PathTransformer) Transform

func (t *PathTransformer) Transform(kvps api.KVPairs)

Transform performs path transformation as requested

Jump to

Keyboard shortcuts

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