go 语言中的nil
In Go,nilis thezero value for pointers, interfaces, maps, slices, channels and function types, representing anuninitializedvalue.
nildoesn't mean some "undefined" state, it's a proper value in itself. An object in Go isnilsimply if and only if it'...
原创
2020-05-13 17:55:30 ·
157 阅读 ·
0 评论