|
|
|
|
|
by pphysch
867 days ago
|
|
For bespoke internal services, I like to keep main.go as flat as reasonable, like a "script". Handlers can have their own files but the bulk of the control flow and moving parts should be apparent from reading the main file. Abstracting things away from main makes it less readable and is general pointless for bespoke services that will be deployed in exactly one configuration. |
|