Art9Studio / Aureole

Exported function returning value of unexported type RVV-B0011
Anti-pattern
Critical
2 years ago2 years old
exported func CreateRouter returns unexported type *core.router, which can be annoying to use
 69	return fiberApp
 70}
 71
 72func CreateRouter() *router { 73	return &router{
 74		appRoutes:     make(map[string][]*ExtendedRoute),
 75		projectRoutes: []*Route{},