Documentation
¶
Index ¶
- type FunInfo
- type Package
- func (p *Package) Copy(src string, dest string) error
- func (p *Package) Generate(dest string, data interface{}, tplSource string) error
- func (p *Package) GetFun(name string) *FunInfo
- func (p *Package) GetPackageName(filename string) string
- func (p *Package) Init() *Package
- func (p *Package) ParseFile(path string) error
- func (p *Package) Rename(old_name string, new_name string)
- func (p *Package) ResolvePath(path string) (string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct {
Info *build.Package
TokenFileSet *token.FileSet
Ast map[string]*ast.File
// objects get indexed by map[object_name]file_name
Bads map[string]string // for error handling
Pkgs map[string]string // package
Cons map[string]string // constant
Typs map[string]string // type
Vars map[string]string // variable
Funs map[string]string // function or method
Lbls map[string]string // label
// contains filtered or unexported fields
}
something to hold the source data in
func (*Package) GetPackageName ¶
find the package name for a file
Click to show internal directories.
Click to hide internal directories.