Skip to content

Commit

Permalink
Update installation commands
Browse files Browse the repository at this point in the history
1. The info about pre go modules is not relevant anymore, so drop it.
2. Extra slashes are not needed before the version suffix, per https://go.dev/ref/mod#go-install. So make it consistent.

Also, not sure if the command to get nats server is needed here at all?

Signed-off-by: Alex Bozhenko <alex@synadia.com>
  • Loading branch information
alexbozhenko committed Dec 4, 2024
1 parent f563c66 commit 8720150
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,14 @@ A [Go](http://golang.org) client for the [NATS messaging system](https://nats.io
## Installation

```bash
# Go client
go get github.com/nats-io/nats.go/
# To get the latest released Go client:
go get github.com/nats-io/nats.go@latest

# Server
go get github.com/nats-io/nats-server
```

When using or transitioning to Go modules support:

```bash
# Go client latest or explicit version
go get github.com/nats-io/nats.go/@latest
go get github.com/nats-io/nats.go/@v1.37.0

# For latest NATS Server, add /v2 at the end
go get github.com/nats-io/nats-server/v2
# To get a specific version:
go get github.com/nats-io/nats.go@v1.37.0

# NATS Server v1 is installed otherwise
# go get github.com/nats-io/nats-server
# Note that the latest major version for NATS Server is v2:
go get github.com/nats-io/nats-server/v2@latest
```

## Basic Usage
Expand Down

0 comments on commit 8720150

Please sign in to comment.