Skip to content

Commit 40bc0a7

Browse files
committed
doc: mention that *_js.go files are now ignored and treated like a GOOS
Fixes #26329 Change-Id: Id87fd106e69d3d9682653eb753b1de616adeed2b Reviewed-on: https://go-review.googlesource.com/123416 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent a07ee41 commit 40bc0a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/go1.11.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ <h3 id="wasm">WebAssembly</h3>
5757
<p>
5858
Go 1.11 adds an experimental port to WebAssembly (<code>js/wasm</code>).
5959
</p>
60+
<p>
61+
As a result of the addition of the new <code>GOOS</code> value
62+
"<code>js</code>" and <code>GOARCH</code> value "<code>wasm</code>",
63+
Go files named <code>*_js.go</code> or <code>*_wasm.go</code> will
64+
now be <a href="/pkg/go/build/#hdr-Build_Constraints">ignored by Go
65+
tools</a> except when those GOOS/GOARCH values are being used.
66+
If you have existing filenames matching those patterns, you will have to rename them.
67+
</p>
6068

6169
<h2 id="tools">Tools</h2>
6270

0 commit comments

Comments
 (0)