[utf8说明](https://pkg.go.dev/unicode/utf8)
获取真实字符串大小
package main
import (
"fmt"
"unicode/utf8"
)
func main() {
ch1 := "xiaolizi"
ch2 := "李"
ch3 := "l哥"
fmt.Printf("字符串%v 字节大小or字符长度%d 真实字符长度%d\n", ch1, len(ch1), utf8.RuneCountInString(ch1))
fmt.Printf("字符串%v 字节大小or字符长度%d 真实字符长度%d\n", ch2, len(ch2), utf8.RuneCountInString(ch2))
fmt.Printf("字符串%v 字节大小or字符长度%d 真实字符长度%d\n", ch3, len(ch3), utf8.RuneCountInString(ch3))
}