runeutil

package
v0.0.0-...-381a539 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsIllegal

func ContainsIllegal(str string, legalRunes []Validator) bool

ContainsIllegal returns true if any of the runes in str matches none of the legal rune validators.

Types

type Validator

type Validator func(rune) bool

Validator describes a function that validates a rune.

func AllowRunes

func AllowRunes(runes ...rune) Validator

AllowRunes creates a rune validator function from the given list of runes that will make it return true.

Jump to

Keyboard shortcuts

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