Hacker News new | ask | show | jobs
by rob74 869 days ago
If Go treats all files inside a package the same, maybe you should use packages as the "unit" in Go instead of files? That would probably still be useful, at least for bigger projects...
2 comments

Yeah, that's an option, it's not a perfect fit with the philosophy of the project, but definitely possible. But ideally it would just work between files in a package.
Especially since Go has a culture of backwards compatibility and the API doesn't change if you move files around on a package.