Type อะไรใน Go มีค่าเป็น nil ได้บ้าง
Weerasak Chongnguluam
102

The static type (or just type) of a variable is the type given in its declaration, the type provided in the new call or composite literal, or the type of an element of a structured variable. Variables of interface type also have a distinct dynamic type, which is the concrete type of the value assigned to the variable at run time (unless the value is the predeclared identifier nil, which has no type). The dynamic type may vary during execution but values stored in interface variables are always assignable to the static type of the variable.

https://golang.org/ref/spec#Introduction

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.