#Go project structure best practices
4 messages · Page 1 of 1 (latest)
personally i just make a /enums folder and define enums in different files for organization
keep it simple 🤷♂️
for enums you may find https://pkg.go.dev/golang.org/x/tools/cmd/stringer interesting - personally I don't over complicate things and I keep enums in the same package where they are used (and I recommend you do the same, see my blog for more about not overcomplicating layout)