Documentation ¶
Index ¶
Constants ¶
View Source
const ( Invalid = 0 UTF8 = 0b01 ASCII = 0b10 | UTF8 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Validation ¶
type Validation byte
func Validate ¶
func Validate(p []byte) Validation
Validate is a more precise version of Valid that also indicates whether the input was valid ASCII.
func (Validation) IsASCII ¶
func (v Validation) IsASCII() bool
func (Validation) IsInvalid ¶
func (v Validation) IsInvalid() bool
func (Validation) IsUTF8 ¶
func (v Validation) IsUTF8() bool
Click to show internal directories.
Click to hide internal directories.