In-reply-to » 💡 TIL: Today I learned that there is nothing special about pkg/ inside of Go projects. It is just like any other sub-package structure you might otherwise define in your project. It just adds an extra part to your imports. I think it's actually confusing at best and just unnecessary typing and an unnecessary sub-structure. Just keep your packages in the top-level and be done with it 👌

@prologic@twtxt.net I think many projects largely started using it because of “the standard go project layout” which is not actually endorsed by the go core dev team. I generally advise against it for similar reasons.

⤋ Read More