wasm.go 439 B

123456789101112131415161718192021222324252627
  1. //go:build wasm
  2. // +build wasm
  3. package app
  4. import (
  5. "runtime"
  6. "github.com/maxence-charriere/go-app/v9/pkg/errors"
  7. )
  8. const (
  9. wasmExecJS = ""
  10. appJS = ""
  11. appWorkerJS = ""
  12. manifestJSON = ""
  13. appCSS = ""
  14. )
  15. var (
  16. errBadInstruction = errors.New("unsupported instruction").
  17. Tag("architecture", runtime.GOARCH)
  18. )
  19. func GenerateStaticWebsite(dir string, h *Handler, pages ...string) error {
  20. panic(errBadInstruction)
  21. }