gowasm-experiments

command module
Version: v0.0.0-...-fe96c7b Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

go webassembly experiments

Requires go1.13

Building and running

$ cd {proj} # sub folder (i.e. bouncy, rainbow-mouse)
$ go get -v # ignore the js warning
$ ./build.sh
$ go run ../serve.go

Serve with caddy or anything else that is able to set the mimetype 'application/wasm' for .wasm files

Documentation

Overview

Serve static files from current working directory

it will start at port 8080 if port is being used it will try next one

Source Files

Directories

Path Synopsis
arty
client
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
painter/font
Package font -- Generated by folder2go (http://github.com/gohxs/folder2go)
Package font -- Generated by folder2go (http://github.com/gohxs/folder2go)
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Drag mouse on canvas Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go
Drag mouse on canvas Wasming compile: GOOS=js GOARCH=wasm go build -o main.wasm ./main.go

Jump to

Keyboard shortcuts

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