首页 > 解决方案 > golang中以下两个表达式有什么区别?

问题描述

s1 := []byte{}
var s2 []byte 

为什么 goland 建议我更改 s1 -> s2 我现在 s1 为空,s2 为 nil

标签: go

解决方案


推荐阅读