Skip to content

Commit

Permalink
add to read the official doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Oct 20, 2024
1 parent 4f6716b commit 95e0481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_posts/2024-10-19-no-nonsense-go-package-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ One main philosophy for go, is keeping things simple. More code writing, less st

### Official

The official guide on this topic is [go.dev/doc/modules/layout](https://go.dev/doc/modules/layout) yet people still tend to over complicated, it says
The official guide on this topic is [go.dev/doc/modules/layout](https://go.dev/doc/modules/layout) - which you should read if you haven't already, then come back here. Despite that reference (and maybe in part because of it) people still tend to over complicate. For instance it says

> **Larger** packages or commands **may** benefit from splitting off some functionality into supporting packages. **Initially,** it’s recommended placing such packages into a directory named internal; [...] Since other projects cannot import code from our internal directory, we’re free to refactor its API and generally move things around without breaking external users.
Expand Down

0 comments on commit 95e0481

Please sign in to comment.