- keep business components separate from primitives: components/marketplace
features/*/ui
Explore
features/*/ui
metrics
pricing model if visible]
business model
create:
feature flags
formulas
function-level call graphs) prioritizing business-critical paths.
critical flows
no business route logic inside server module
return app startup function
internal registration hidden
compatible dev/prod environment separation
fully unified viper env management
expose unique Module() dig.Option to encapsulate domain internal Provide + domain exclusive route Invoke
internal all layers encapsulated inside domain folder
self-contains model/repo/service/handler + dedicated module.go.
specializing in vertical autonomous business domain modular architecture based on shanjunmei/dig compile-time DI. All output strictly implement full business domain isolation
lightweight infra simplification(config/pgdb no module.go)
constructors and constants must be placed in separate .go files without build tags (e.g. main.go). Failing to do so will cause missing-type compilation errors during normal builds.
and will be completely skipped by standard go build / go run commands. Do NOT define business structs
supports error return.
Technical Support