Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnalyzer ¶
Types ¶
type Allowed ¶
type Allowed struct { // The path of the package that defines the type. // If the type is builtin, let it be an empty string. PkgPath string // The name of the type. TypeName string }
Allowed represents a type that is allowed for the argument.
type Target ¶
type Target struct { // Package path of the target function (or method). PkgPath string // Name of the target function (or method). FuncName string // Position of argument of type any. // ArgPos is 0-indexed. ArgPos int // List of allowed types for the argument. Allowed []Allowed }
Target represents a pair of a function and a list of arguments with allowed types.
Click to show internal directories.
Click to hide internal directories.