Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The only example I have in mind is modules, which can have a different name from their root package.

For example you can have github.com/user/go-module as module name, and "module" as package name, so "import github.com/user/go-module" will be imported as "module.*".

There’s a linter that automatically aliases this kind of imports with their actual module name so that it’s non ambiguous when reading the import list.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: