Versions in this module Expand all Collapse all v1 v1.18.1 Aug 15, 2022 Changes in this version + const GoVersion + const Version + func CheckGoVersion(goroot string) error + func ErrorAt(err error, fset *token.FileSet, pos token.Pos) error + func GoRelease(goroot string) string + func WriteArchive(a *Archive, w io.Writer) error + func WritePkgCode(pkg *Archive, dceSelection map[*Decl]struct{}, gls goLinknameSet, minify bool, ...) error + func WriteProgramCode(pkgs []*Archive, w *SourceMapFilter, goVersion string) error + type Archive struct + BuildTime time.Time + Declarations []*Decl + ExportData []byte + FileSet []byte + GoLinknames []GoLinkname + ImportPath string + Imports []string + IncJSCode []byte + Minified bool + Name string + func Compile(importPath string, files []*ast.File, fileSet *token.FileSet, ...) (_ *Archive, err error) + func ImportDependencies(archive *Archive, importPkg func(string) (*Archive, error)) ([]*Archive, error) + func ReadArchive(path string, r io.Reader) (*Archive, error) + func (a *Archive) RegisterTypes(packages map[string]*types.Package) error + func (a Archive) String() string + type Decl struct + Blocking bool + DceDeps []string + DceMethodFilter string + DceObjectFilter string + DeclCode []byte + FullName string + InitCode []byte + LinkingName SymName + MethodListCode []byte + TypeInitCode []byte + Vars []string + type Dependency struct + Method string + Pkg string + Type string + type ErrorList []error + func (err ErrorList) Error() string + func (err ErrorList) Normalize() error + type FatalError struct + func (b *FatalError) Write(p []byte) (n int, err error) + func (b FatalError) Error() string + func (b FatalError) Unwrap() error + type GoLinkname struct + Implementation SymName + Reference SymName + type ImportContext struct + Import func(string) (*Archive, error) + Packages map[string]*types.Package + type SourceMapFilter struct + MappingCallback func(generatedLine, generatedColumn int, originalPos token.Position) + Writer io.Writer + func (f *SourceMapFilter) Write(p []byte) (n int, err error) + type SymName struct + Name string + PkgPath string + func (n SymName) String() string