mirror of
https://github.com/taigrr/wasm-experiments
synced 2025-01-18 04:03:21 -08:00
Remove printing folder
This commit is contained in:
parent
5c7c23d888
commit
e16f079d16
@ -1,7 +0,0 @@
|
||||
build: clean compile
|
||||
|
||||
clean:
|
||||
rm -f ./html/test.wasm
|
||||
|
||||
compile:
|
||||
GOOS=js GOARCH=wasm GOROOT=$(GOPATH)/src/github.com/neelance/go/ $(GOPATH)/src/github.com/neelance/go/bin/go build -o ./html/test.wasm main.go
|
@ -1,13 +0,0 @@
|
||||
# Printing
|
||||
|
||||
## Running:
|
||||
|
||||
Simply open ./html/index.html in a web browser of your choice (that supports WebAssembly)
|
||||
|
||||
## Building
|
||||
|
||||
```bash
|
||||
$ make build
|
||||
```
|
||||
|
||||
This requires the WASM Go fork in your $GOPATH, and the compiled Go binary in that fork to be built.
|
@ -1,11 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime/js"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Test")
|
||||
js.Global.Get("console").Call("log", "yadayada")
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user