manipulate

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNIDInvalid = errors.New("nid_invalid")

Functions

func SanitizeFileName added in v0.1.5

func SanitizeFileName(s string) string

func SanitizeIBAN

func SanitizeIBAN(s *null.String)

func SanitizeNID

func SanitizeNID(s *string) error

func SanitizeVAT

func SanitizeVAT(s *null.String)

func SnakeCase

func SnakeCase(s string) string

func UpperSnakeCase

func UpperSnakeCase(s string) string

Types

type Kind added in v0.1.11

type Kind int
const (
	Strict Kind = iota + 1
	UGC
)

type Sanitizer

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

func NewSanitizer added in v0.1.11

func NewSanitizer(kind Kind) *Sanitizer

func (*Sanitizer) Sanitize added in v0.1.11

func (p *Sanitizer) Sanitize(s *string)

func (*Sanitizer) SanitizeNull added in v0.1.11

func (p *Sanitizer) SanitizeNull(s *null.String)

Jump to

Keyboard shortcuts

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