common

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CharactersSpecial = ",!@#$%^&*)(+=._-"
)

Variables

This section is empty.

Functions

func IsAlpha

func IsAlpha(r rune) bool

func IsAlphanumeric

func IsAlphanumeric(r rune) bool

func IsDigit

func IsDigit(r rune) bool

func IsLowerAlpha

func IsLowerAlpha(r rune) bool

func IsSpecialCharacter

func IsSpecialCharacter(r rune) bool

func IsText

func IsText(value string) bool

IsText checks the given value to contain only visible characters and various whitespaces, including line breaks. No ring bells and other control characters. The value is allowed to be empty.

func IsTitle

func IsTitle(value string) bool

IsTitle checks the given value is a single non-empty line with neither leading nor trailing spaces. It must contain only printable characters and single ASCII spaces (a space must not follow a space). No tabulations, no unbreakable spaces, no ring bells and other control characters.

func IsUpperAlpha

func IsUpperAlpha(r rune) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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