strtr

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spec

type Spec struct {
	Inputs       string
	Replacements string
}

func NewRandomTrSpec

func NewRandomTrSpec(inputs string) *Spec

func NewTrSpec

func NewTrSpec(inputs string, replacements string) *Spec

func (*Spec) IsValid

func (spec *Spec) IsValid() bool

type Tr

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

func NewTr

func NewTr(spec *Spec) *Tr

func (*Tr) Apply

func (tr *Tr) Apply(input string) string

Jump to

Keyboard shortcuts

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