Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentList ¶
func CommentList(docs ...*ast.CommentGroup) []string
Types ¶
type CommentMap ¶
type CommentMap struct { Structs []Struct Funcs []Func Interfaces []Interface Others []OtherNamed }
func ExtractComments ¶
func ExtractComments(file *ast.File, pkg *packages.Package) *CommentMap
func (*CommentMap) CopyForewordsToFirstField ¶
func (cm *CommentMap) CopyForewordsToFirstField() *CommentMap
type Field ¶
func ExtractFieldsComments ¶
func ExtractParamsComments ¶
func ExtractParamsComments(fieldList *ast.FieldList, cmap ast.CommentMap) []Field
type Func ¶
type Func struct { Name string Comments []string ParamsForewordComments []string Params []Field ResultsForewordComments []string Results []Field }
func ExtractFuncComments ¶
func ExtractFuncComments(typ *ast.FuncDecl, cmap ast.CommentMap) Func
func ExtractMethodsComments ¶
func ExtractMethodsComments(methods []*ast.Field, cmap ast.CommentMap) []Func
type OtherNamed ¶
Click to show internal directories.
Click to hide internal directories.