parser

package
v0.0.0-...-8ae1596 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDir

func ParseDir(abspath string, pkgOut map[string]*Package, parent *Navi, excludes map[string]bool) error

Types

type Decl

type Decl interface {
	GetName() string
	GetDoc() string
	GetCode() string
}

type File

type File struct {
	Doc   string
	Funcs []Decl
	Decls []Decl
}

func (*File) GetDoc

func (f *File) GetDoc() string

type Func

type Func struct {
	Name string
	Doc  string
	Code string
}

func (*Func) GetCode

func (fn *Func) GetCode() string

func (*Func) GetDoc

func (fn *Func) GetDoc() string

func (*Func) GetName

func (fn *Func) GetName() string

type GenDecl

type GenDecl struct {
	Name string
	Doc  string
	Code string
}

func (*GenDecl) GetCode

func (d *GenDecl) GetCode() string

func (*GenDecl) GetDoc

func (d *GenDecl) GetDoc() string

func (*GenDecl) GetName

func (d *GenDecl) GetName() string
type Navi struct {
	Pname string
	Navis map[string]*Navi
}

type Package

type Package struct {
	Name  string
	Doc   string
	Files map[string]*File
}

Package type

func AstPkgToPkg

func AstPkgToPkg(fset *token.FileSet, pkg *ast.Package, parentPname string) *Package

func (*Package) GetDecls

func (p *Package) GetDecls() []string

func (*Package) GetDoc

func (p *Package) GetDoc() string

func (*Package) GetFuncs

func (p *Package) GetFuncs() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL