1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Replace go-nats with nats.go in examples

Signed-off-by: Waldemar Quevedo <wally@synadia.com>
This commit is contained in:
Waldemar Quevedo
2019-06-05 15:06:39 -07:00
parent b4bcfc165e
commit e22bcf3938
7 changed files with 20 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ import (
"net"
"time"
"github.com/nats-io/go-nats"
"github.com/nats-io/nats.go"
)
type customDialer struct {
@@ -129,4 +129,4 @@ WaitForEstablishedConnection:
}
log.Println("Disconnected")
}
```
```

View File

@@ -15,7 +15,7 @@ nats-server
### 2. Clone the repositories for each client examples
```sh
go get github.com/nats-io/go-nats
go get github.com/nats-io/nats.go
git clone https://github.com/nats-io/node-nats.git
git clone https://github.com/nats-io/ruby-nats.git
```
@@ -23,7 +23,7 @@ git clone https://github.com/nats-io/ruby-nats.git
### 3. Run the Go client subscriber with queue group name
```sh
cd $GOPATH/src/github.com/nats-io/go-nats/examples
cd $GOPATH/src/github.com/nats-io/nats.go/examples
go run nats-qsub.go foo my-queue
```
@@ -45,14 +45,14 @@ nats-queue foo my-queue &
### 6. Run another Go client subscriber *without* the queue group.
```sh
cd $GOPATH/src/github.com/nats-io/go-nats/examples
cd $GOPATH/src/github.com/nats-io/nats.go/examples
go run nats-sub.go foo
```
### 7. Publish a NATS message using the Go client
```sh
cd $GOPATH/src/github.com/nats-io/go-nats/examples
cd $GOPATH/src/github.com/nats-io/nats.go/examples
go run nats-pub.go foo "Hello NATS!"
```