initial commit
This commit is contained in:
4 files changed
+218
No files matched your search
@@ -0,0 +1,18 @@
|
||||
// +build js,wasm
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"syscall/js"
|
||||
)
|
||||
|
||||
func printWasm(v []js.Value) {
|
||||
fmt.Println("Hello from WASM", v)
|
||||
}
|
||||
|
||||
func main() {
|
||||
js.Global().Set("printWasm", js.NewCallback(printWasm))
|
||||
fmt.Println("Done...")
|
||||
<-make(chan struct{})
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
Reference in new issue
Block a user