Skip to content

Commit 2aa4ad8

Browse files
authored
doc: add go installation instructions (#57)
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
1 parent a4367d0 commit 2aa4ad8

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,34 @@ The output is a component which may be run using e.g. [`wasmtime`](https://githu
2222

2323
## Installation
2424

25+
### Using Go
26+
27+
Requires Go 1.25.5+
28+
29+
Add the following to your `go.mod` file and run `go mod tidy`:
30+
31+
```
32+
tool github.com/bytecodealliance/componentize-go
33+
```
34+
35+
In the same directory as your `go.mod` file, you can interact with the tool:
36+
37+
```sh
38+
go tool componentize-go --help
39+
```
40+
41+
Alternatively:
42+
43+
```sh
44+
go install github.com/bytecodealliance/componentize-go@latest
45+
```
46+
47+
It should be accessible via PATH:
48+
49+
```sh
50+
componentize-go --help
51+
```
52+
2553
### Download a release
2654

2755
You can download a specific release from the [release page](https://github.com/bytecodealliance/componentize-go/releases).

0 commit comments

Comments
 (0)