Documentation
      ¶
    
    
  
    
  
    Index ¶
- func MarshalArchive(a *Archive) ([]byte, error)
 - func WritePkgCode(pkg *Archive, minify bool, w *SourceMapFilter) error
 - func WriteProgramCode(pkgs []*Archive, importContext *ImportContext, w *SourceMapFilter) error
 - type Archive
 - type Decl
 - type DepId
 - type ErrorList
 - type ImportContext
 - type PkgImport
 - type PkgPath
 - type SourceMapFilter
 - type This
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalArchive ¶
func WritePkgCode ¶
func WritePkgCode(pkg *Archive, minify bool, w *SourceMapFilter) error
func WriteProgramCode ¶
func WriteProgramCode(pkgs []*Archive, importContext *ImportContext, w *SourceMapFilter) error
Types ¶
type Archive ¶
type Archive struct {
	ImportPath   PkgPath
	GcData       []byte
	Dependencies []PkgPath
	Imports      []PkgImport
	Declarations []Decl
	Tests        []string
	FileSet      []byte
	BlockingInit bool
	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
 Click to show internal directories. 
   Click to hide internal directories.