Documentation ¶
Index ¶
- type Pkg
- func (p *Pkg) AddFile(files ...*file.File)
- func (p *Pkg) GetDefaultImported(path, value string) (string, error)
- func (p *Pkg) GetFunc(name string) map[*file.File]*dst.FuncDecl
- func (p *Pkg) GetFuncResultByName(FnName, recvName string) []string
- func (p *Pkg) GetFuncWithParam(param string) map[*file.File][]*dst.FuncDecl
- func (p *Pkg) GetFuncWithSelector(expr string) map[*file.File][]*dst.FuncDecl
- func (p *Pkg) GetGlobalVar() map[string]string
- func (p *Pkg) GetImported(path string) (string, error)
- func (p *Pkg) GetStruct(name string) (*dst.StructType, error)
- func (p *Pkg) GetStructFieldType(structName, fieldName string) (string, bool)
- func (p *Pkg) Save() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pkg ¶
type Pkg struct { Name string // contains filtered or unexported fields }
func (*Pkg) GetDefaultImported ¶
func (*Pkg) GetFuncResultByName ¶
func (*Pkg) GetFuncWithParam ¶
func (*Pkg) GetFuncWithSelector ¶
func (*Pkg) GetGlobalVar ¶
func (*Pkg) GetStructFieldType ¶
Click to show internal directories.
Click to hide internal directories.