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