encoding.utf8.validate #
fn utf8_data #
fn utf8_data(data &u8, len int) bool
utf8_data returns true, if the given data
block, with length len
bytes, consists only of valid UTF-8 runes
fn utf8_string #
fn utf8_string(s string) bool
utf8_string returns true, if the given string s
consists only of valid UTF-8 runes