I haven't used Go in a while and I'm just starting to work on an old project again.
I have init()
functions in a number of the packages and they work fine. However I've just created a new package and added an init()
function but it won't run during initialization like the others. If I put the init()
function in an previously existing package it runs fine...
I believe this is a simple problem but I can't for the life of me figure it out. What could I be doing wrong?