Documentation ¶
Index ¶
- func WriteArchive(a *Archive, w io.Writer) error
- func WritePkgCode(pkg *Archive, dceSelection map[*Decl]struct{}, minify bool, w *SourceMapFilter) error
- func WriteProgramCode(pkgs []*Archive, w *SourceMapFilter) error
- type Archive
- func Compile(importPath string, files []*ast.File, fileSet *token.FileSet, ...) (*Archive, error)
- func ImportDependencies(archive *Archive, importPkg func(string) (*Archive, error)) ([]*Archive, error)
- func ReadArchive(filename, path string, r io.Reader, packages map[string]*types.Package) (*Archive, error)
- type Decl
- type Dependency
- type ErrorList
- type ImportContext
- type SourceMapFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WritePkgCode ¶
func WritePkgCode(pkg *Archive, dceSelection map[*Decl]struct{}, minify bool, w *SourceMapFilter) error
func WriteProgramCode ¶
func WriteProgramCode(pkgs []*Archive, w *SourceMapFilter) error
Types ¶
type Archive ¶
type Archive struct { Hash []byte ImportPath string Name string Imports []string ExportData []byte Declarations []*Decl IncJSCode []byte FileSet []byte Minified bool }
func ImportDependencies ¶
type Dependency ¶
type ImportContext ¶
Directories ¶
Path | Synopsis |
---|---|
Package gopherjspkg provides core GopherJS packages via a virtual filesystem.
|
Package gopherjspkg provides core GopherJS packages via a virtual filesystem. |
Package natives provides native packages via a virtual filesystem.
|
Package natives provides native packages via a virtual filesystem. |
Click to show internal directories.
Click to hide internal directories.