Hello and happy new year.
var x interface{} // x is nil and has static type interface{}
var v *T // v has value nil, static type *T
x = 42 // x has value 42 and dynamic type int
x = v // x has value (*T)(nil) and dynamic type *T
Since the first comment is different for the others (`x is nil` against `x has value`) I decided to run a simple test
var z *interface{}
The output of the first and last line is
x is nil and has static type interface{}
<invalid reflect.Value> <nil>
z is nil and has static type *interface{}
<nil> *interface {}
The question is: why reflect.Type.String() returns `<nil>` instead of `interface{}` ?
Is the example printing the static or the dynamic type?
Thanks
Manlio Perillo