-
Notifications
You must be signed in to change notification settings - Fork 568
Bundle additional JavaScript with Go packages
Dmitri Shuralyov edited this page Jun 6, 2016
·
4 revisions
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.