golang中判断字符串是否为空的方法:if len(str) == 0{}推荐学习:go基础教程或者使用下面的方法判断:if str == "" {}测试方法:func Benchmark_Fun(b *testing