Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser holds a raw ast-tree data with pre-initialized map for constant names grouped by type name.
func NewParser ¶
NewParser creates and initializes a Parser for Go package. It loads a package with all types and syntax info, gets package name, etc.
func (Parser) GetConstantsByType ¶ added in v0.0.2
func (Parser) GetPackageName ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.