Skip to content

Commit

Permalink
Update 2024-10-19-no-nonsense-go-package-layout.md
Browse files Browse the repository at this point in the history
IDE typo
  • Loading branch information
ldemailly authored Oct 20, 2024
1 parent cd16bf3 commit 63168c2
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 @@ -57,7 +57,7 @@ Any package you put into a pkg directory can be moved the root.

Some people think that having packages at the top, "clutters", the directory... first what does get cluttered if you add unnecessary directory layers is every single import in dozen of files and possibly hundreds of dependencies... think about them... Second, feel free to move the various docs etc to some subdirectory. Lastly what is 'clutter' navigation probably comes through your "godoc" (the excellent [pkg.go.dev](https://pkg.go.dev/) or your self hosted equivalent for private repositories).

Btw don't get me started with repos that have dozens of files and that to see what is going on not using an idea you have to go main.go -> some other file -> some init file -> some start function -> some other files... while all this could be in 1 or 2 places, easier to follow and find.
Btw don't get me started with repos that have dozens of packages and files and where to see what is going on without an IDE you have to go: main.go -> some other file -> some init file -> some start function -> some other files... while all this could be in 1 or 2 places, easier to follow and find.

#### util/

Expand Down

0 comments on commit 63168c2

Please sign in to comment.