genconf

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenMatchingGroup added in v1.20.0

func GenMatchingGroup(dir, pattern string, ext APIPathPatternExtractor, captureGroupName bool) ([]string, error)

Types

type APIPathPatternExtractor added in v1.20.0

type APIPathPatternExtractor interface {
	Extract(callInfo ssautil.CallInfo) (string, bool)
	RegexpPattern(path string, captureGroupName bool) string
}

type ArgAstInfo

type ArgAstInfo struct {
	Call     *ast.CallExpr
	CallPos  token.Position
	ArgPos   token.Position
	ArgIndex int
}

type ArgNotBasicLitError

type ArgNotBasicLitError struct {
	Info []*ArgAstInfo
}

func (*ArgNotBasicLitError) Error

func (e *ArgNotBasicLitError) Error() string

type EchoExtractor added in v1.20.0

type EchoExtractor struct{}

func (*EchoExtractor) Extract added in v1.20.0

func (e *EchoExtractor) Extract(callInfo ssautil.CallInfo) (string, bool)

func (*EchoExtractor) RegexpPattern added in v1.20.0

func (e *EchoExtractor) RegexpPattern(path string, _ bool) string

type NetHttpExtractor added in v1.20.0

type NetHttpExtractor struct{}

func (*NetHttpExtractor) Extract added in v1.20.0

func (e *NetHttpExtractor) Extract(callInfo ssautil.CallInfo) (string, bool)

func (*NetHttpExtractor) RegexpPattern added in v1.20.0

func (e *NetHttpExtractor) RegexpPattern(path string, _ bool) string

type WebFramework

type WebFramework int
const (
	EchoV4 WebFramework = iota
	Gin
	ChiV5
	Iris12
	Gorilla
	NetHttp
	None
)

func CheckImportedFramework

func CheckImportedFramework(dir, pattern string) (WebFramework, error)

Jump to

Keyboard shortcuts

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