- Notifications
You must be signed in to change notification settings - Fork570
Bundle additional JavaScript with Go packages
Dmitri Shuralyov edited this pageJun 6, 2016 ·4 revisions
Thegopherjs 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:
.goGo source files..inc.jsJavaScript source files.Automatically included when building the package.Files of each of these types except.inc.js may contain build constraints, but thegopherjs command stops scanning for build constraints at the first item in the file that is not a blank line or //-style line comment.