# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ExprBoolValue fetches a bool value from the Expr If the Expr cannot parse as a bool, returns nil.
ExprIntValue fetches an int value from the Expr If the Expr cannot parse as an int, returns nil.
ExprStringValue fetches a string value from the Expr If the Expr is not BasicLit, returns an empty string.
ExprValue fetches a pointer to the Expr If the Expr is nil, returns nil.
FieldListName returns field name at field position and name position if found.
FieldListNames returns field names at field position if found.
FieldListType returns type at field position if found.
No description provided by the author
HasFieldListLength returns true if the FieldList has the expected length If FieldList is nil, checks against expected length of 0.
IsExprTypeArrayError returns true if the expression matches []error.
IsExprTypeArrayString returns true if the expression matches []string.
IsExprTypeString returns true if the expression matches bool.
IsExprTypeError returns true if the expression matches string.
IsExprTypeInterface returns true if the expression matches interface{}.
IsExprTypeMapStringInterface returns true if the expression matches []string.
IsExprTypeString returns true if the expression matches string.
IsFieldListType returns true if the field at position is present and matches expected ast.Expr.
IsFieldListTypeModulePackageType returns true if the field at position is present and matches expected module and package type
This function automatically handles Go module versioning in import paths.
IsFieldListTypePackageType returns true if the field at position is present and matches expected package type
This function checks an explicit import path.
IsModulePackageFunc returns true if the function package suffix (for vendoring) and name matches
This function automatically handles Go module versioning in import paths.
IsModulePackageFunctionFieldListType returns true if the function parameter package suffix (for vendoring) and name matches
This function automatically handles Go module versioning in import paths.
IsModulePackageNamedType returns if the type name matches and is from the package suffix
This function automatically handles Go module versioning in import paths.
IsModulePackageReceiverMethod returns true if the module and package suffix (for vendoring), receiver name, and method name match
This function automatically handles Go module versioning in import paths.
IsModulePackageType returns true if the type name can be matched and is from the package suffix
This function automatically handles Go module versioning in import paths.
IsPackageFunc returns true if the function package suffix (for vendoring) and name matches
This function checks an explicit import path.
IsPackageFunctionFieldListType returns true if the function parameter package suffix (for vendoring) and name matches
This function checks an explicit import path.
IsPackageNamedType returns if the type name matches and is from the package suffix
This function checks an explicit import path.
IsPackageReceiverMethod returns true if the package suffix (for vendoring), receiver name, and method name match
This function checks an explicit import path.
IsPackageType returns true if the type name can be matched and is from the package suffix
This function checks an explicit import path.
IsStdlibPackageFunc returns true if the function package suffix (for vendoring) and name matches
This function checks an explicit import path without vendoring.
IsStdlibPackageFunctionFieldListType returns true if the function parameter package suffix (for vendoring) and name matches
This function checks an explicit import path without vendoring.
IsStdlibPackageNamedType returns if the type name matches and is from the package suffix
This function checks an explicit import path without vendoring.
IsStdlibPackageReceiverMethod returns true if the package suffix (for vendoring), receiver name, and method name match
This function checks an explicit import path without vendoring.
IsStdlibPackageType returns true if the type name can be matched and is from the package suffix
This function checks an explicit import path without vendoring.