Documentation: add more installation instuctions (#2824)
Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
This commit is contained in:
parent
15bb95ccc3
commit
c0fa4e32d7
@ -9,11 +9,20 @@ $ cd delve
|
|||||||
$ go install github.com/go-delve/delve/cmd/dlv
|
$ go install github.com/go-delve/delve/cmd/dlv
|
||||||
```
|
```
|
||||||
|
|
||||||
On Go version 1.16 or later, this command will also work:
|
Alternatively, on Go version 1.16 or later:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# Install the latest release:
|
||||||
$ go install github.com/go-delve/delve/cmd/dlv@latest
|
$ go install github.com/go-delve/delve/cmd/dlv@latest
|
||||||
|
|
||||||
|
# Install at tree head:
|
||||||
|
$ go install github.com/go-delve/delve/cmd/dlv@master
|
||||||
|
|
||||||
|
# Install at a specific version or pseudo-version:
|
||||||
|
$ go install github.com/go-delve/delve/cmd/dlv@v1.7.3
|
||||||
|
$ go install github.com/go-delve/delve/cmd/dlv@v1.7.4-0.20211208103735-2f13672765fe
|
||||||
```
|
```
|
||||||
|
See [Versions](https://go.dev/ref/mod#versions) and [Pseudo-versions](https://go.dev/ref/mod#pseudo-versions) for how to format the version suffixes.
|
||||||
|
|
||||||
See `go help install` for details on where the `dlv` executable is saved.
|
See `go help install` for details on where the `dlv` executable is saved.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user