1package pkg 2 3type t struct { 4 f int 5} 6 7func fn(v *t) { 8 println(v.f) 9} 10 11func init() { 12 var v t 13 fn(&v) 14} 15