As the title says it: Why does Golang allow multiple init() functions in each file ?
Is it an infinite amount, does there exist a limit for them ? And what is the mechanism that allows a package to have multiple init() functions ?
As the title says it: Why does Golang allow multiple init() functions in each file ?
Is it an infinite amount, does there exist a limit for them ? And what is the mechanism that allows a package to have multiple init() functions ?
Here it is a good explanation and discussion about it.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.