Skip to content

Bundle additional JavaScript with Go packages

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.

Related Resources

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy