add WASM blazor-like thing
This commit is contained in:
9
go/cmd/examples/go-wasm-web/wasm/main_native.go
Normal file
9
go/cmd/examples/go-wasm-web/wasm/main_native.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build !(js && wasm)
|
||||
|
||||
// The wasm client entry point (main.go) builds only under GOOS=js GOARCH=wasm.
|
||||
// This native placeholder keeps the package buildable on the host so a plain
|
||||
// `go build ./...` succeeds; the real client is built by build.sh / the dev
|
||||
// server with GOOS=js GOARCH=wasm.
|
||||
package main
|
||||
|
||||
func main() {}
|
||||
Reference in New Issue
Block a user