Documentation ¶
Index ¶
- func Import(path string, mode build.ImportMode, archSuffix string) (*build.Package, error)
- func Parse(pkg *build.Package, fileSet *token.FileSet) ([]*ast.File, error)
- type Archive
- type Compiler
- func (t *Compiler) Compile(importPath string, files []*ast.File, fileSet *token.FileSet, ...) (*Archive, error)
- func (t *Compiler) MarshalArchive(a *Archive) ([]byte, error)
- func (t *Compiler) NewEmptyTypesPackage(path string)
- func (t *Compiler) UnmarshalArchive(filename, id string, data []byte) (*Archive, error)
- func (t *Compiler) WritePkgCode(pkg *Archive, minify bool, w *SourceMapFilter)
- func (t *Compiler) WriteProgramCode(pkgs []*Archive, mainPkgPath string, minify bool, w *SourceMapFilter)
- type Decl
- type DepId
- type ErrorList
- type ImportCError
- type PkgImport
- type PkgPath
- type SourceMapFilter
- type This
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Archive ¶
type Archive struct { ImportPath PkgPath GcData []byte Dependencies []PkgPath Imports []PkgImport Declarations []Decl Tests []string FileSet []byte }
func (*Archive) AddDependenciesOf ¶
func (*Archive) AddDependency ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func (*Compiler) NewEmptyTypesPackage ¶
func (*Compiler) UnmarshalArchive ¶
func (*Compiler) WritePkgCode ¶
func (t *Compiler) WritePkgCode(pkg *Archive, minify bool, w *SourceMapFilter)
func (*Compiler) WriteProgramCode ¶
func (t *Compiler) WriteProgramCode(pkgs []*Archive, mainPkgPath string, minify bool, w *SourceMapFilter)
type ImportCError ¶
type ImportCError struct{}
func (*ImportCError) Error ¶
func (e *ImportCError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.