Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
PkgName string
Imports []s2aModels.Import
Funcs s2aModels.Functions
HTTPHandler models.HTTPHandlerInfo
// contains filtered or unexported fields
}
Parser is a source code parser.
Uses the built-in AST features to parse the functions. Also parses the main package name, file imports, API HTTP handler information.
func NewSourceParser ¶
func NewSourceParser() *Parser
NewSourceParser returns a new source code parser.
Click to show internal directories.
Click to hide internal directories.