Documentation
¶
Index ¶
- func ExtractText(cg *ast.CommentGroup) string
- type Lookup
- func (l *Lookup) LookupAST(filename string) (*ast.File, error)
- func (l *Lookup) LookupCommentTextFromFunc(fn interface{}) (string, error)
- func (l *Lookup) LookupRegion(filename string, lineno int, targerName string) (Region, error)
- func (l *Lookup) LookupRegionFromFunc(fn interface{}) (Region, error)
- type Region
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractText ¶
func ExtractText(cg *ast.CommentGroup) string
ExtractText extract full text of comment-group
Types ¶
type Lookup ¶
type Lookup struct {
// contains filtered or unexported fields
}
func (*Lookup) LookupCommentTextFromFunc ¶
LookupCommentTextFromFunc extracts the comment-text of the passed function
func (*Lookup) LookupRegion ¶
func (*Lookup) LookupRegionFromFunc ¶
Click to show internal directories.
Click to hide internal directories.