Standard Library

GoTypes

Go stdlib package — go/types. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.ArgumentError.Error()Neutral
#
Signature
ArgumentError.Error() string

ArgumentError.Error function.

.ArgumentError.Unwrap()Neutral
#
Signature
ArgumentError.Unwrap() error

ArgumentError.Unwrap function.

.Array.Elem()Neutral
#
Signature
Array.Elem() Type

Elem returns element type of array a.

.Array.Len()Neutral
#
Signature
Array.Len() int64

Len returns the length of array a.

.Array.String()Neutral
#
Signature
Array.String() string

Array.String function.

.Array.Underlying()Neutral
#
Signature
Array.Underlying() Type

Array.Underlying function.

.AssertableTo()Neutral
#
Signature
AssertableTo(V *Interface, T Type) bool

AssertableTo reports whether a value of type V can be asserted to have type T.

.AssignableTo()Neutral
#
Signature
AssignableTo(V Type, T Type) bool

AssignableTo reports whether a value of type V is assignable to a variable

.Basic.Info()Neutral
#
Signature
Basic.Info() BasicInfo

Info returns information about properties of basic type b.

.Basic.Kind()Neutral
#
Signature
Basic.Kind() BasicKind

Kind returns the kind of basic type b.

Fully-Qualified Names

FQNField
go/typesfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # go/types