Documentation
¶
Overview ¶
Package commentparse parses source code comments and creates a source code comment database.
Index ¶
- func GetIdentifierComment(packagePath, typeName string) string
- func GetIdentifierConstantComment(packagePath, typeName string, constantValue any) string
- func GetInterfaceComment(packagePath, typeName string) string
- func GetInterfaceMethodComment(packagePath, typeName, methodName string) string
- func GetStructComment(packagePath, typeName string) string
- func GetStructFieldComment(packagePath, typeName, fieldName string) string
- func GetStructMethodComment(packagePath, typeName, methodName string) string
- func MustWriteGeneratedCode(parsedComments *comments)
- func Parse(pattern string, includeTests bool) *comments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIdentifierComment ¶
GetIdentifierComment returns the comment for an identifier.
func GetIdentifierConstantComment ¶
GetIdentifierConstantComment returns the comment for a constant value of an identifier.
func GetInterfaceComment ¶
GetInterfaceComment returns the comment for an interface.
func GetInterfaceMethodComment ¶
GetInterfaceMethodComment returns the comment for a method in an interface.
func GetStructComment ¶
GetStructComment returns the comment for a struct.
func GetStructFieldComment ¶
GetStructFieldComment returns the comment for a field in a struct.
func GetStructMethodComment ¶
GetStructMethodComment returns the comment for a method in a struct.
func MustWriteGeneratedCode ¶
func MustWriteGeneratedCode(parsedComments *comments)
MustWriteGeneratedCode outputs the generated code to `outputDirectory/commentparse_gen.go`
Types ¶
This section is empty.