transform

package
v0.0.0-...-28926d1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeClean         = "clean"
	TypeDate          = "date"
	TypeReplaceString = "replace.string"
	TypeReplaceRegexp = "replace.regexp"
)

Variables

This section is empty.

Functions

func Clean

func Clean(data string) string

func Date

func Date(data string) string

func ReplaceRegexp

func ReplaceRegexp(str, groups, newStr string) string

func ReplaceStr

func ReplaceStr(str, old, newStr string) string

Types

type Transformer

type Transformer struct {
	Type   string            `json:"type,omitempty"`
	Params map[string]string `json:"params,omitempty"`
}

type Transformers

type Transformers []Transformer

func (*Transformers) UnmarshalJSON

func (t *Transformers) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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