go语言求字符串长度的方法:1、使用“len()”函数计算ASCII字符串长度;2、使用“utf8.RuneCountInString()”函数计算Unicode字符串长度。
本文操作环境:Windows7系统、Go1.11.2版,Dell G3电脑。