replace

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReplacement

func NewReplacement(oldStr string, newStr string) replacement

Types

type ReplaceChain added in v0.3.0

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

func NewChain

func NewChain(replacements ...replacement) *ReplaceChain

func (*ReplaceChain) Apply added in v0.3.0

func (c *ReplaceChain) Apply(s string) string

func (*ReplaceChain) Copy added in v0.3.0

func (c *ReplaceChain) Copy() *ReplaceChain

func (*ReplaceChain) Extend added in v0.3.0

func (c *ReplaceChain) Extend(replacements ...replacement) *ReplaceChain

Jump to

Keyboard shortcuts

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