Debian Codegraph @

utf8/utf8.go

raw
1 package utf8
2
3 import _ "github.com/segmentio/asm/cpu"
4
5 // Valid reports whether p consists entirely of valid UTF-8-encoded runes.
6 func Valid(p []byte) bool {
7 return Validate(p).IsUTF8()
8 }