Files
kjol/go/wasmdevserver/devserver_wasm.go

12 lines
620 B
Go

//go:build js && wasm
// This file exists only so the package is not EMPTY under js/wasm.
//
// wasmdevserver is a server: it compiles Go, serves HTTP, and walks the filesystem —
// none of which a browser can do. The real file is excluded from the wasm build (it
// depends on rsc.Handler, which is itself server-only). But a package whose files are
// all excluded is a build error, not an empty package, and `GOOS=js go build ./...`
// would fail on it — which is exactly the command you run to check the half of kjol
// that DOES target wasm. So the package stays present here, and empty.
package wasmdevserver