Documentation ¶
Index ¶
- Constants
- func MarshalArchive(a *Archive) ([]byte, error)
- func WritePkgCode(pkg *Archive, minify bool, w *SourceMapFilter)
- func WriteProgramCode(pkgs []*Archive, importContext *ImportContext, w *SourceMapFilter)
- type Archive
- type Decl
- type DepId
- type ErrorList
- type ImportContext
- type PkgImport
- type PkgPath
- type SourceMapFilter
- type This
Constants ¶
View Source
const GOROUTINES = false
Variables ¶
This section is empty.
Functions ¶
func MarshalArchive ¶
func WritePkgCode ¶
func WritePkgCode(pkg *Archive, minify bool, w *SourceMapFilter)
func WriteProgramCode ¶
func WriteProgramCode(pkgs []*Archive, importContext *ImportContext, w *SourceMapFilter)
Types ¶
type Archive ¶
type Archive struct { ImportPath PkgPath GcData []byte Dependencies []PkgPath Imports []PkgImport Declarations []Decl Tests []string FileSet []byte Minified bool }
func UnmarshalArchive ¶
func UnmarshalArchive(filename, id string, data []byte, importContext *ImportContext) (*Archive, error)
func (*Archive) AddDependenciesOf ¶
func (*Archive) AddDependency ¶
type ImportContext ¶
type ImportContext struct { Packages map[string]*types.Package Import func(string) (*Archive, error) }
func NewImportContext ¶
func NewImportContext(importFunc func(string) (*Archive, error)) *ImportContext
Source Files ¶
Click to show internal directories.
Click to hide internal directories.