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 ArgAstInfo ¶
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)
Click to show internal directories.
Click to hide internal directories.