Documentation
¶
Index ¶
- func ComputeWeight(path string) int
- func ExtractQueryTags(data any) map[string]any
- func GetFunction[T any](target any, methodName string) (T, bool, error)
- func GetGoModuleName(dir string) (string, error)
- func GetPackageName(filename string) (string, error)
- func JoinURL(base string, parts ...string) string
- func Prettify(v any) (string, error)
- func SortRoutes(routes []Route)
- func ToJSON(data any) string
- type Action
- type EventBus
- type Handler
- type IServer
- type Load
- type Registry
- type Route
- type Router
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeWeight ¶
ComputeWeight calculates the weight of a route
func ExtractQueryTags ¶
ExtractQueryTags extracts all struct field values that have the "query" tag
func GetGoModuleName ¶
func GetPackageName ¶
GetPackageName extracts the package name from a Go source file
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
Click to show internal directories.
Click to hide internal directories.