Versions in this module Expand all Collapse all v1 v1.0.2 Jul 29, 2022 v1.0.1 Jul 29, 2022 Changes in this version + func CompositeLitContainsAnyField(cl *ast.CompositeLit, fieldNames ...string) bool + func CompositeLitField(cl *ast.CompositeLit, fieldName string) *ast.KeyValueExpr + func CompositeLitFieldBoolValue(cl *ast.CompositeLit, fieldName string) *bool + func CompositeLitFieldExprValue(cl *ast.CompositeLit, fieldName string) *ast.Expr + func CompositeLitFieldIntValue(cl *ast.CompositeLit, fieldName string) *int + func CompositeLitFields(cl *ast.CompositeLit) map[string]*ast.KeyValueExpr + func ExprBoolValue(e ast.Expr) *bool + func ExprIntValue(e ast.Expr) *int + func ExprStringValue(e ast.Expr) *string + func ExprValue(e ast.Expr) *ast.Expr + func FieldListName(fieldList *ast.FieldList, fieldPosition int, namePosition int) *string + func FieldListNames(fieldList *ast.FieldList, position int) []*ast.Ident + func FieldListType(fieldList *ast.FieldList, position int) *ast.Expr + func FuncTypeFromNode(node ast.Node) *ast.FuncType + func HasFieldListLength(fieldList *ast.FieldList, expectedLength int) bool + func IsExprTypeArrayError(e ast.Expr) bool + func IsExprTypeArrayString(e ast.Expr) bool + func IsExprTypeBool(e ast.Expr) bool + func IsExprTypeError(e ast.Expr) bool + func IsExprTypeInterface(e ast.Expr) bool + func IsExprTypeMapStringInterface(e ast.Expr) bool + func IsExprTypeString(e ast.Expr) bool + func IsFieldListType(fieldList *ast.FieldList, position int, exprFunc func(ast.Expr) bool) bool + func IsFieldListTypeModulePackageType(fieldList *ast.FieldList, position int, info *types.Info, module string, ...) bool + func IsFieldListTypePackageType(fieldList *ast.FieldList, position int, info *types.Info, packageSuffix string, ...) bool + func IsModulePackageFunc(e ast.Expr, info *types.Info, module string, packageSuffix string, ...) bool + func IsModulePackageFunctionFieldListType(e ast.Expr, info *types.Info, module string, packageSuffix string, ...) bool + func IsModulePackageNamedType(t *types.Named, module string, packageSuffix string, typeName string) bool + func IsModulePackageReceiverMethod(e ast.Expr, info *types.Info, module string, packageSuffix string, ...) bool + func IsModulePackageType(t types.Type, module string, packageSuffix string, typeName string) bool + func IsPackageFunc(e ast.Expr, info *types.Info, packageSuffix string, funcName string) bool + func IsPackageFunctionFieldListType(e ast.Expr, info *types.Info, packageSuffix string, typeName string) bool + func IsPackageNamedType(t *types.Named, packageSuffix string, typeName string) bool + func IsPackageReceiverMethod(e ast.Expr, info *types.Info, packageSuffix string, ...) bool + func IsPackageType(t types.Type, packageSuffix string, typeName string) bool + func IsStdlibPackageFunc(e ast.Expr, info *types.Info, packagePath string, funcName string) bool + func IsStdlibPackageFunctionFieldListType(e ast.Expr, info *types.Info, packagePath string, typeName string) bool + func IsStdlibPackageNamedType(t *types.Named, packagePath string, typeName string) bool + func IsStdlibPackageReceiverMethod(e ast.Expr, info *types.Info, packagePath string, ...) bool + func IsStdlibPackageType(t types.Type, packagePath string, typeName string) bool