cleaner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 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 Cleaner

type Cleaner struct {
	Strategies map[string]string
	// contains filtered or unexported fields
}

func New

func New() *Cleaner

New a Cleaner

func (*Cleaner) AddStrategies

func (c *Cleaner) AddStrategies(strategies ...string) error

AddStrategies accepts strategies in "`Before` => `After`" format e.g. "`JustLorain` => `justlorain`"

func (*Cleaner) Clean

func (c *Cleaner) Clean(input string) string

func (*Cleaner) DeleteStrategies

func (c *Cleaner) DeleteStrategies(before string)

Jump to

Keyboard shortcuts

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