This commit is contained in:
suguo.yao 2022-09-24 09:17:16 +08:00
commit 11a881cf18
4 changed files with 16 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.wasm

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module myschools.me/suguo/wasm
go 1.19

7
main.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello world.")
}

5
readme.md Normal file
View File

@ -0,0 +1,5 @@
# WebAssembly
#### 环境与编译
GOOS=js GOARCH=wasm go build -o demo.wasm