Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Root = "pkg"
Root is the project layout root stripped from every name so the category stays visible (services/db/manager, routers/user/router). Projects with a different layout may override or clear it.
Functions ¶
func Name ¶
Name returns obj's service name: its package dir relative to the project root, with Root stripped, joined with the type name (pkg/services/db + manager -> services/db/manager). Optional prefixes are stripped after Root, whole segments only, first match wins - Name(m, "services") turns services/db/manager into db/manager.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.