demo

command module
v0.0.0-...-17c52e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

BudouX-Go Demo

Source code of BudouX-Go demo page. The demo page is build with go-app.

Requirement

Go 1.17 or later.

Test

go test ./...

Run Demo App

Build WebAssembly app before start server.

GOARCH=wasm GOOS=js go build -o web/app.wasm

Run server.

go run main.go

or build and run server.

go build
./demo

Static Site Generate

Build WebAssembly app before static site generate.

GOARCH=wasm GOOS=js go build -o dist/web/app.wasm

Generate static website and output to dist directory.

go run main.go -ssg=dist

If deploy to GitHub Pages, set repository name to prefix option.

go run main.go -ssg=dist -prefix=REPOSITORY_NAME

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL