router

package
v0.0.0-...-031595f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDir

func ParseDir(fset *token.FileSet, pathStr string, filter func(fs.FileInfo) bool, mode parser.Mode) (pkgs map[string]*ast.Package, first error)

Types

type FileInfo

type FileInfo struct {
	Path string
}

type Function

type Function struct {
	FileInfo
	GroupPath string
	Name      string
	Paths     []HttpPath
}

type HttpPath

type HttpPath struct {
	Path       string
	Method     string
	PathMethod string
}

type Package

type Package struct {
	PackageBaseName string
	PackageName     string
	Functions       []Function
	StructFunctions []StructFunction
}

type StructFunction

type StructFunction struct {
	Functions  []Function
	StructName string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL