You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dmitri Shuralyov edited this page Jun 6, 2016
·
4 revisions
Bundle additional JavaScript with Go packages
The gopherjs install command examines the contents of a restricted set of files in each directory. It identifies which files to examine based on the extension of the file name. These extensions are:
.go
Go source files.
.inc.js
JavaScript source files.
Automatically included when building the package.
Files of each of these types except .inc.js may contain build constraints, but the gopherjs command stops scanning for build constraints at the first item in the file that is not a blank line or //-style line comment.