Change the build tag strategy: GopehrJS or not GopherJS

This commit is contained in:
Hajime Hoshi 2019-10-27 23:27:40 +09:00
parent 15ebf9bdb5
commit f50875ff4b
7 changed files with 9 additions and 2 deletions

View File

@ -13,6 +13,7 @@
// limitations under the License.
// +build js
// +build !wasm
package mp3

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build !js
// +build !js wasm
// Package mp3 provides MP3 decoder.
//

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build js !wasm
package stb
import (

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build js !wasm
package stb
// stbvorbis.js
@ -19,4 +21,4 @@ package stb
// License: Apache License 2.0
// Commit: ac1c2ee9d24eb6085eb1e968f55e0fb32cacc03a
//go:generate file2byteslice -package=stb -input=stbvorbis.js -output=stbvorbisjs_file.go -var=stbvorbis_js
//go:generate file2byteslice -package=stb -input=stbvorbis.js -output=stbvorbis.js.go -var=stbvorbis_js -buildtags "js !wasm"