Versions in this module Expand all Collapse all v1 v1.2.0 Feb 16, 2023 v1.1.0 Jan 24, 2020 v1.0.0 Sep 4, 2019 Changes in this version + type Comment struct + EndCol int + EndLine int + StartCol int + StartLine int + type Decl struct + Col int + Filename string + Full string + Ident string + Keyword string + Line int + type Func struct + Doc *Position + FuncPos *Position + Lbrace *Position + Rbrace *Position + Signature *FuncSignature + func (f *Func) IsDeclaration() bool + func (f *Func) IsLiteral() bool + func (f *Func) String() string + type FuncSignature struct + Full string + In string + Name string + Out string + Recv string + func NewFuncSignature(node ast.Node) *FuncSignature + func (s *FuncSignature) String() string + type Funcs []*Func + func (f Funcs) Declarations() Funcs + func (f Funcs) EnclosingFunc(offset int) (*Func, error) + func (f Funcs) Len() int + func (f Funcs) Less(i, j int) bool + func (f Funcs) NextFunc(offset int) (*Func, error) + func (f Funcs) NextFuncShift(offset, shift int) (*Func, error) + func (f Funcs) PrevFunc(offset int) (*Func, error) + func (f Funcs) PrevFuncShift(offset, shift int) (*Func, error) + func (f Funcs) Reserve() + func (f Funcs) Swap(i, j int) + type Parser struct + func NewParser(opts *ParserOptions) (*Parser, error) + func (p *Parser) Funcs() Funcs + func (p *Parser) Run(query *Query) (*Result, error) + func (p *Parser) Types() Types + type ParserOptions struct + Comments bool + Dir string + File string + Src []byte + type Position struct + Column int + Filename string + Line int + Offset int + func ToPosition(pos token.Position) *Position + func (pos Position) IsValid() bool + type Query struct + Includes []string + Mode string + Offset int + Shift int + type Result struct + Comment Comment + Decls []Decl + Func *Func + Mode string + type Type struct + Doc *Position + Signature *TypeSignature + TypePos *Position + type TypeSignature struct + Full string + Name string + Type string + func NewTypeSignature(node *ast.TypeSpec) *TypeSignature + type Types []*Type + func (t Types) TopLevel() Types