golang结构体判断为空,可以使用代码“if objectA==(structname{}){//your code}”,其中的objectA是变量,structname是结构体名称,structname后面的{}不能省略。
技术文章 / 下载软件趣味内容 / 专业带飞