Skip to content

Commit

Permalink
Merge pull request #481 from nats-io/go-get-go-modules
Browse files Browse the repository at this point in the history
Add note to README on using go get and Go modules
  • Loading branch information
derekcollison committed Jun 7, 2019
2 parents 7b479cd + 9251745 commit 1133a83
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ go get github.com/nats-io/nats.go/
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.8.1

# For latest NATS Server, add /v2 at the end
go get github.com/nats-io/nats-server/v2

# NATS Server v1 is installed otherwise
# go get github.com/nats-io/nats-server
```

## Basic Usage

```go
Expand Down

0 comments on commit 1133a83

Please sign in to comment.