Versions in this module Expand all Collapse all v1 v1.0.1 Oct 5, 2023 v1.0.0 Apr 10, 2022 Changes in this version type Function + Examples *collection.Collection[*Function] v0 v0.0.12 Apr 8, 2022 v0.0.11 Apr 8, 2022 Changes in this version type File + func (f *File) GetAstAttributes() (*ast.File, *token.FileSet) v0.0.10 Apr 7, 2022 v0.0.9 Apr 7, 2022 v0.0.8 Apr 7, 2022 v0.0.7 Apr 7, 2022 v0.0.6 Apr 7, 2022 v0.0.5 Apr 7, 2022 v0.0.4 Apr 7, 2022 v0.0.3 Apr 7, 2022 v0.0.2 Apr 7, 2022 v0.0.1 Apr 7, 2022 Changes in this version + const KIND_ARRAY + const KIND_CHAN + const KIND_FUNC + const KIND_INTERFACE + const KIND_MAP + const KIND_STRUCT + func AdjustSource(source string, adjustBraces bool) string + func GetLinesFromFile(path string, from, to int) []byte + func WalkGoFiles(path string) (files []string) + type Field struct + Comment string + Doc string + IsEmbedded bool + IsExported bool + Line int + Name string + Signature string + func NewField(f *ast.Field, parent *File) *Field + func (f *Field) Parse() *Field + func (f *Field) String() string + type File struct + Functions *collection.Collection[*Function] + HasBenchmarks bool + HasExamples bool + HasTests bool + Imports []string + IsMain bool + IsTest bool + Name string + Package string + Path string + Types *collection.Collection[*Type] + Values *collection.Collection[*Value] + func NewFile(path string) (*File, error) + func (f *File) Parse() *File + func (f *File) String() string + type Function struct + Body string + Doc string + IsBenchmark bool + IsExample bool + IsExported bool + IsMethod bool + IsTest bool + LineCount int + LineEnd int + LineStart int + Name string + Output string + Receiver string + Signature string + func NewFunction(fn *ast.FuncDecl, parent *File) *Function + func (f *Function) Parse() *Function + func (f *Function) String() string + type Package struct + Files *collection.Collection[*File] + Name string + func NewPackage(name string) *Package + func (p *Package) String() string + type Type struct + Body string + Comment string + Doc string + Fields *collection.Collection[*Field] + Kind string + LineCount int + LineEnd int + LineStart int + Name string + Signature string + func NewType(ts *ast.TypeSpec, parent *File) *Type + func (t *Type) Parse() *Type + func (t *Type) String() string + type Value struct + Body string + Kind string + Line int + Name string + func NewValue(id *ast.Ident, parent *File) *Value + func (v *Value) Parse() *Value + func (v *Value) String() string + type Walker func(ast.Node) bool + func (w Walker) Visit(node ast.Node) ast.Visitor