Skip to content

Commit 01939a3

Browse files
committed
README: add more install instructions alternatives
Add install as a Go module tool. Add install using mise-en-place.
1 parent cb6c91d commit 01939a3

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ go1.24.4 X:rangefunc
108108

109109
## ⬇️ Install
110110

111+
### From source
112+
111113
```console
112114
$ go install github.com/dolmen-go/goeval@latest
113115
```
@@ -118,13 +120,34 @@ Install with online features (`-play`, `-share`) disabled:
118120
$ go install -tags=goeval.offline github.com/dolmen-go/goeval@latest
119121
```
120122

121-
122-
## 🗑️ Uninstall
123+
#### 🗑️ Uninstall
123124

124125
```console
125126
$ go clean -i github.com/dolmen-go/goeval
126127
```
127128

129+
130+
### Install as a [tool](https://go.dev/doc/modules/managing-dependencies#tools) for your Go project
131+
132+
Install as a versionned [tool] in a Go 1.24+ module:
133+
```console
134+
$ go get -tool github.com/dolmen-go/goeval
135+
```
136+
137+
Use `goeval` through `go tool`:
138+
```console
139+
$ go tool goeval 'fmt.Println("OK")'
140+
OK
141+
```
142+
143+
144+
### Via [mise-en-place](https://mise.jdx.dev)
145+
146+
```
147+
$ mise install go:github.com/dolmen-go/goeval
148+
$ mise use -g go:github.com/dolmen-go/goeval
149+
```
150+
128151
## ❓ How does it work?
129152

130153
### GOPATH mode

0 commit comments

Comments
 (0)