Documentation ¶
Index ¶
- Variables
- func ContainsContext(t *types.Tuple) bool
- func ContainsError(results *types.Tuple) bool
- func EvalBinaryExpr(expr *ast.BinaryExpr) (n, iotas int)
- func EvalInt(expr ast.Expr) (n, iotas int)
- func GetBitSize(kind types.BasicKind) string
- func Hash(name string, hash uint32) uint32
- func Inspect(pkgs []*packages.Package, f func(p *packages.Package, n ast.Node) bool)
- func IsContext(t types.Type) bool
- func IsError(t types.Type) bool
- func IsNamed(t *types.Tuple) bool
- func IsPanic(t types.Type) bool
- func LenWithoutContext(t *types.Tuple) int
- func LenWithoutErr(t *types.Tuple) int
- func LookupField(name string, sig *types.Signature) *types.Var
- func NameType(vars []*types.Var, qf types.Qualifier, filterFn FilterFn) (results []string)
- func NameTypeParams(vars []*types.Var, qf types.Qualifier, filterFn FilterFn) (results []string)
- func Params(vars []*types.Var, fn func(p *types.Var) []string, ...) (results []string)
- func ZeroValue(t types.Type) string
- type FilterFn
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ContainsContext ¶ added in v1.10.0
func ContainsError ¶ added in v1.10.0
func EvalBinaryExpr ¶ added in v1.24.1
func EvalBinaryExpr(expr *ast.BinaryExpr) (n, iotas int)
func GetBitSize ¶
func LenWithoutContext ¶ added in v1.10.0
func LenWithoutErr ¶ added in v1.10.0
func NameTypeParams ¶ added in v1.20.1
Types ¶
Click to show internal directories.
Click to hide internal directories.