# Packages
Package cache solves one of the hardest computer science problems in application to GopherJS compiler outputs.
Package versionhack makes sure go/build doesn't disable module support whenever GopherJS is compiled by a different Go version than it's targeted Go version.
# Functions
DefaultEnv creates a new instance of build Env according to environment variables.
Import returns details about the Go package named by the import path.
ImportDir is like Import but processes the Go package found in the named directory.
IsPkgNotFound returns true if the error was caused by package not found.
NewBuildContext creates a build context for building Go packages with GopherJS compiler.
NewMappingCallback creates a new callback for source map generation.
NewSession creates a new GopherJS build session.
# Variables
DefaultGOROOT is the default GOROOT value for builds.
# Structs
Env contains build environment configuration required to define an instance of XContext.
JSFile represents a *.inc.js file metadata and content.
Options controls build process behavior.
PackageData is an extension of go/build.Package with additional metadata GopherJS requires.
Session manages internal state GopherJS requires to perform a build.
# Interfaces
XContext is an extension of go/build.Context with GopherJS-specific features.