Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content/docs: update to fit the README.md on the tinygo repository #430

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions content/docs/guides/webassembly/wasi.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Here is a small TinyGo program for use within a WASI host application:
```go
package main

//go:wasmimport yourmodulename add
//go:wasm-module yourmodulename
//export add
func add(x, y uint32) uint32 {
return x + y
}
Expand All @@ -28,5 +29,5 @@ func main() {}
To compile the above TinyGo program for use on any WASI runtime:

```shell
GOOS=wasip1 GOARCH=wasm tinygo build -o main.wasm main.go
tinygo build -o main.wasm -target=wasip1 main.go
```