gowasm-experiments

command module
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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Directories

Path Synopsis
arty
client command
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)
server command
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