Add build constraints to wasm source files

Add constraints to the wasm's source files so they're only built for the
js/wasm target.
This commit is contained in:
Zorchenhimer 2019-03-30 23:58:26 -04:00
parent 2acf382f1f
commit 358a2c068d
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// +build js,wasm
package main
import (

View File

@ -1,3 +1,5 @@
// +build js,wasm
package main
import (