The program available on The Go Playground reads
package main import \"fmt\" func main() { var name string = nil fmt.Println(name) }
In go string is a data type, it's no a pointer to an array like C/C++. As such you can't assign it to nil.
string