|
|
|
|
|
by knorker
1916 days ago
|
|
I'm not sure I follow. How can the compiler know that the import is side-effect free, transitively? Without opening more files and parsing them, how does it know that none of the transitive dependency tree has a `func init(){}` ? Go forces you to add an underscore if you mean "I'm importing this for its side-effects, and am not using it directly". |
|