Skip to content

Commit a33ec1b

Browse files
authored
docs: fix go command
1 parent 4be8b19 commit a33ec1b

File tree

1 file changed

+1
-8
lines changed
  • component-model/src/language-support

1 file changed

+1
-8
lines changed

component-model/src/language-support/go.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,14 @@ $ wkg wit build
4040
WIT package written to docs:[email protected]
4141
```
4242

43-
The `docs:[email protected]` file is a Wasm encoding of the WIT package. Next, we can generate the bindings for it:
44-
45-
```console
46-
$ go get go.bytecodealliance.org/cmd/wit-bindgen-go
47-
$ go run go.bytecodealliance.org/cmd/wit-bindgen-go generate -o internal/ ./docs:[email protected]
48-
```
49-
5043
Now, create your Go project:
5144

5245
```console
5346
$ mkdir add && cd add
5447
$ go mod init example.com
5548
```
5649

57-
Next, we can generate the bindings for the `add.wit` file:
50+
Next, we can generate the bindings for the Wasm component:
5851

5952
```console
6053
$ go get go.bytecodealliance.org/cmd/wit-bindgen-go

0 commit comments

Comments
 (0)