package
0.7.0
Repository: https://github.com/reedom/convergen.git
Documentation: pkg.go.dev

# Functions

CompliesGetter checks whether the given function complies with the requirements of a getter function.
CompliesStringer checks if the given type is a Stringer compliant type, which has a method "String()" that takes no arguments and returns a string.
Deref dereferences a type if it is a *Pointer type and returns its base type and true.
DerefPtr dereferences a *Pointer type and returns its base type.
ExtractMatchComments removes pattern matched comments from commentGroup and returns them.
FindField returns the field with the given name from the given type.
FindMethod returns the method with the given name in the given type.
GetDocCommentOn retrieves doc comments that relate to nodes.
GetMethodReturnTypes returns the return types of the given method.
InsertComment inserts a comment with the specified text at the specified position in file.Comments.
IsBasicType returns true if the given type is a basic type.
IsErrorType returns true if the given type is an error type.
IsFunc returns true if the given type is a func type.
IsInvalidType returns true if the given type is an invalid type.
IsNamedType returns true if the given type is a named type.
IsPtr returns true if the given type is a pointer type.
IsSliceType returns true if the given type is a slice type.
IsStructType returns true if the given type is a struct type.
IterateFields iterates over the fields of the given type and calls the callback for each one.
IterateMethods iterates over the methods of the given type and calls the callback for each one.
MatchComments reports whether any comment line in commentGroup contains any match of the regular expression pattern.
NewImportNames creates a new ImportNames instance.
ParseGetterReturnTypes returns the return types of the given method.
PathMatch returns true if the name matches the pattern.
PkgOf returns the package of the given type.
RemoveDecl removes a declaration named name from file.Decls.
RemoveMatchComments removes pattern matched comments from file.Comments.
SliceElement returns the type of the element in a slice type.
StringType returns the string type in the universe scope.
ToAstNode converts types.Object to []ast.Node.
ToTextList returns a list of strings representing the comments in a CommentGroup.

# Structs

No description provided by the author

# Type aliases

ImportNames is a map of a package path to a package name in a convergen setup file.