Documentation ¶
Overview ¶
Package parser parses Go code and keeps track of all the types defined and provides access to all the constants defined for an int type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct { Name string // contains filtered or unexported fields }
A Package contains all the information related to a parsed package.
func ParsePackage ¶
ParsePackage parses the package in the given directory and returns it.
func (*Package) ValuesOfType ¶
ValuesOfType is inspect files for constant value, default variable and methods for type, return a list of the constant values, and map of templates which must be ignored, because they have already been declared.
Click to show internal directories.
Click to hide internal directories.