normal

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcNormAdapt

func ProcNormAdapt(f func(string) string) func(b []byte) ([]byte, error)

func ReplaceNewlineAndTab

func ReplaceNewlineAndTab(s string) string

Types

type LettersOnly

type LettersOnly struct{}

func (*LettersOnly) Normalize

func (s *LettersOnly) Normalize(v string) string

type Normalizer

type Normalizer interface {
	Normalize(string) string
}

type Pipeline

type Pipeline struct {
	Normalizer []Normalizer
}

func (*Pipeline) Normalize

func (p *Pipeline) Normalize(s string) string

type RemoveWhitespace

type RemoveWhitespace struct{}

func (*RemoveWhitespace) Normalize

func (s *RemoveWhitespace) Normalize(v string) string

type Simple

type Simple struct{}

func (*Simple) Normalize

func (s *Simple) Normalize(v string) string

Jump to

Keyboard shortcuts

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