69 return fiberApp
70}
71
72func CreateRouter() *router { 73 return &router{
74 appRoutes: make(map[string][]*ExtendedRoute),
75 projectRoutes: []*Route{},
An exported function or method returning a value of an unexported type may be frustrating to use.
In Go, if the function or method starts with a lowercase letter, it is not exported outside the package.
type unexportedType string
func ExportedFunc() *unexportedType {
return &unexportedType("some string")
}
type ExportedType string
func ExportedFunc() *ExportedType {
return &ExportedType("some string")
}