proj

package
v0.0.0-...-dc5dc8e Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proj

type Proj struct {
	// contains filtered or unexported fields
}

func New

func New() *Proj

func (*Proj) AddFile

func (proj *Proj) AddFile(files ...*file.File)

func (*Proj) GetFunc

func (proj *Proj) GetFunc(pkg, name string) map[*file.File]*dst.FuncDecl

func (*Proj) GetGlobalVar

func (proj *Proj) GetGlobalVar(pkg string) map[string]string

func (*Proj) GetPkgWithImported

func (proj *Proj) GetPkgWithImported(path string) (pkgs []*pkg.Pkg)

func (*Proj) GetStruct

func (proj *Proj) GetStruct(pkg, name string) (*dst.StructType, error)

func (*Proj) GetVarsFromStmt

func (proj *Proj) GetVarsFromStmt(stmt interface{}, curPkg string, outVars map[string]string) map[string]string

func (*Proj) Save

func (proj *Proj) Save() error

func (*Proj) ScanDir

func (proj *Proj) ScanDir(dir string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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