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

Exactly what I've been wondering. I've done `import "./[internal_module]" in some of my little experiments, but I've read that's unacceptable.


Absolute import paths are preferred. If the import path for the importing package is [app], then import the package using `import "[app]/[internal_module]"`.




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

Search: