Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterFunc ¶
FilterFunc lets you specify a function for custom filtering logic.
type MethodFilter ¶
type MethodFilter struct { // ReceiverType is the name of the receiver's type (without the '*' if a pointer). ReceiverType string // ExportedOnly is if the filter should select only exported methods. ExportedOnly bool }
MethodFilter matches method declaration nodes that have the specified receiver type.
type RegexpFilter ¶
type RegexpFilter struct { // Pattern is a regular expression matching AST node names Pattern *regexp.Regexp // Type is the type of AST node to filter for Type reflect.Type }
RegexpFilter matches nodes whose names match a regular expression.
Click to show internal directories.
Click to hide internal directories.