Creating good packages

Hello all,

Does anyone have a good read on the “art” of creating good packages in Go? I’ve been looking through (what I believe) is the source code for Go at: https://github.com/golang/go

I see that packages are generally grouped by function, can be nested, and can cross reference other packages. For example the “strings” package imports the “unicode”

There must be a better way to try and figure out how to create, organize, and manage your packages than looking through the Go code and try and duplicate what they are doing.

Kind regards,
Steven

1 Like

This is a good starting point for everyone https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1

1 Like
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.