Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeChecker ¶
TypeChecker is an interface for checking types in an AST. It is used to check the underlying, built-in types of fields within structs, and raw type declarations. It is up to the implementer to provide a function that will be called when a built-in type is found, and to provide the logic for providing analysis about this type.
func NewTypeChecker ¶
func NewTypeChecker(checkFunc func(pass *analysis.Pass, ident *ast.Ident, node ast.Node, prefix string)) TypeChecker
NewTypeChecker returns a new TypeChecker with the provided checkFunc.
Click to show internal directories.
Click to hide internal directories.