Documentation ¶
Index ¶
- type File
- func (f *File) DefaultImport(path string, value string) (string, bool)
- func (f *File) Dirty()
- func (f *File) Func(name string) (*dst.FuncDecl, error)
- func (f *File) FuncWithParam(param string) (fds []*dst.FuncDecl)
- func (f *File) FuncWithRecv(fnName, recvName string) (*dst.FuncDecl, error)
- func (f *File) FuncWithSelector(expr string) (fds []*dst.FuncDecl)
- func (f *File) GlobalVars() map[string]string
- func (f *File) Imported(path string) (string, bool)
- func (f *File) Pkg() string
- func (f *File) Save() error
- func (f *File) Struct(name string) (*dst.StructType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File file
func (*File) FuncWithParam ¶
FuncWithParam search functions with param
func (*File) FuncWithRecv ¶
func (*File) FuncWithSelector ¶
FuncWithSelector search functions that contain this expr
func (*File) GlobalVars ¶
GlobalVars global vars in file
Click to show internal directories.
Click to hide internal directories.