go语言 判断一个字符串是否为空

if str == "" { ... }

if len(str) == 0 {...}

 

posted @ 2021-08-27 16:01  老油条666  阅读(1426)  评论(0编辑  收藏  举报