Versions in this module Expand all Collapse all v0 v0.7.2 Oct 30, 2024 v0.7.1 Oct 30, 2024 Changes in this version + func CompliesGetter(m *types.Func) bool + func CompliesStringer(src types.Type) bool + func Deref(typ types.Type) (types.Type, bool) + func DerefPtr(typ types.Type) types.Type + func ExtractMatchComments(commentGroup *ast.CommentGroup, pattern *regexp.Regexp) []*ast.Comment + func FindField(t types.Type, name string, exactCase bool) (field *types.Var) + func FindMethod(t types.Type, name string, exactCase bool) (method *types.Func) + func GetDocCommentOn(file *ast.File, obj types.Object) (cg *ast.CommentGroup, cleanUp func()) + func GetMethodReturnTypes(m *types.Func) (*types.Tuple, bool) + func InsertComment(file *ast.File, text string, pos token.Pos) + func IsBasicType(t types.Type) bool + func IsErrorType(t types.Type) bool + func IsFunc(obj types.Object) bool + func IsInvalidType(t types.Type) bool + func IsNamedType(t types.Type) bool + func IsPtr(t types.Type) bool + func IsSliceType(t types.Type) bool + func IsStructType(t types.Type) bool + func IterateFields(t types.Type, cb func(*types.Var) (done bool)) + func IterateMethods(t types.Type, cb func(*types.Func) (done bool)) + func MatchComments(commentGroup *ast.CommentGroup, pattern *regexp.Regexp) bool + func ParseGetterReturnTypes(m *types.Func) (ret types.Type, retError, ok bool) + func PathMatch(pattern, name string, exactCase bool) (bool, error) + func PkgOf(t types.Type) *types.Package + func RemoveDecl(file *ast.File, name string) + func RemoveMatchComments(file *ast.File, pattern *regexp.Regexp) + func SliceElement(t types.Type) types.Type + func StringType() types.Type + func ToAstNode(file *ast.File, obj types.Object) (path []ast.Node, exact bool) + func ToTextList(doc *ast.CommentGroup) []string + type ImportNames map[string]string + func NewImportNames(specs []*ast.ImportSpec) ImportNames + func (i ImportNames) IsExternal(t types.Type) bool + func (i ImportNames) LookupName(pkgPath string) (name string, ok bool) + func (i ImportNames) LookupPath(pkgName string) (path string, ok bool) + func (i ImportNames) TypeName(t types.Type) string + type LookupFieldOpt struct + ExactCase bool + Pattern string + SupportsError bool