tinrab / meower

Social network for cats
MIT License
261 stars 47 forks source link

Golang Standard Project Layout #3

Open oswee opened 5 years ago

oswee commented 5 years ago

Would love to see, how to organize multiple command, handler, denormalizer, query and websocket services under Golang Standard Project Layout. GitHub Can't figure out, how to better organize code of 100+ (i mean more than 10) or so services.

tinrab commented 5 years ago

Most of the code would be under internal directory. app/ for specific use cases and pkg/ for cross-cutting packages. You could use wire for constructing services with many dependencies.