[go-nuts] Re: 1.13 does not run init() when cgo is imported

2020-01-21 Thread Graham Nicholls
Mea Culpa. I was building using a script; to get a solaris build I had disabled cgo. Sorry to have wasted your time, and thanks for the responses - I would have updated sooner, but it as a new poster, it didn't appear immediately. On Tuesday, 21 January 2020 13:24:27 UTC, Graham Nicholls wrote

[go-nuts] Re: 1.13 does not run init() when cgo is imported

2020-01-21 Thread Tamás Gulácsi
What if you remove lines 33-35? Does it panic? Maybe some other init function fills testFunctionsMap? For maps, use a nil check before creation, not length check! 2020. január 21., kedd 14:24:27 UTC+1 időpontban Graham Nicholls a következőt írta: > > I have the following code: > > 3 /* > 4