Help us shape the future of Go! Take the 2026 Go Developer Survey

utf8

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrectWith

func CorrectWith(dst []byte, src []byte, repl string) []byte

CorrectWith corrects the invalid utf8 byte with repl string.

func Validate

func Validate(src []byte) bool

Validate is a simd-accelerated drop-in replacement for the standard library's utf8.Valid.

func ValidateString

func ValidateString(src string) bool

ValidateString as Validate, but for string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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