pillow@programming.dev to Golang@programming.devEnglish · 1 year agoIs there a repository of best practices when it comes to Go? (project/file structure, decoupling)message-squaremessage-square9fedilinkarrow-up15arrow-down10
arrow-up15arrow-down1message-squareIs there a repository of best practices when it comes to Go? (project/file structure, decoupling)pillow@programming.dev to Golang@programming.devEnglish · 1 year agomessage-square9fedilink
minus-squarefoehammer@programming.devlinkfedilinkEnglisharrow-up0·1 year agoThe language feature is the internal/ directory, and it’s function of restricting dependencies from external programs.
minus-squareCodeBlooded@programming.devlinkfedilinkEnglisharrow-up1·1 year agoThat is correct, internal/ is a feature. I was just clarifying that the pkg/ folder isn’t any sort of language feature as you had said it was.
The language feature is the
internal/
directory, and it’s function of restricting dependencies from external programs.That is correct,
internal/
is a feature. I was just clarifying that thepkg/
folder isn’t any sort of language feature as you had said it was.