Versions in this module Expand all Collapse all v0 v0.2.0 Sep 17, 2026 v0.1.0 Aug 30, 2026 Changes in this version + func Generate(tree *RouteTree, pkgName string) ([]byte, error) + func GenerateAssetsFile(entries []AssetEntry, pkgName string) ([]byte, error) + func GenerateRouteFile(pkgName string) ([]byte, error) + func LoadPackages(dir, pattern string) ([]*packages.Package, error) + type AssetEntry struct + FilePath string + FuncName string + Hash string + func ScanAssets(dir string, urlPrefix string) ([]AssetEntry, error) + type AssetGroup struct + Dir string + Entries []AssetEntry + Name string + Prefix string + type PathParam struct + Name string + type RouteEntry struct + Method string + Name string + Path string + PathParams []PathParam + QueryType *StructInfo + type RouteGroup struct + Groups []RouteGroup + Name string + Prefix string + Routes []RouteEntry + type RouteTree struct + Assets []AssetGroup + Groups []RouteGroup + Routes []RouteEntry + func Extract(pkgs []*packages.Package) (*RouteTree, error) + type StructField struct + Name string + SchemaTag string + Type string + type StructInfo struct + Fields []StructField