Why can’t a string be nil in Go?
The simple answer is that nil is not defined to be a valid value for type string in the language specification. …but maybe you want a longer answer? nil is the zero value for pointers, interfaces, channels, slices, maps and function types, and it represents an uninitialized state. Consider the following variable declarations: var a … Read more