Given a struct:
type foo struct { bar func(int) int }
when I var x foo
var x foo
what is the initial value of x.bar ?
x.bar
From the documentation :
The value of an uninitialized variable of function type is nil.