Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
transitorykris
· 9y ago · 0 comments
package globals
var ( X = blah() )
func blah() int { return 123 }
Comments
[–]
codemac
9y ago
Those are all appended into the Package.init function in the compiled .a, so they are part of func init() not just in behavior, but in implementation as well.
[–]
kornish
9y ago
Ha, you're totally right. I'm silly. Thanks!