mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Merge pull request #25 from philpennock/patch-3
Fix for GitBook rendering different tab indents
This commit is contained in:
commit
44d8ce8907
@ -8,13 +8,13 @@ For example, to receive JSON you could do:
|
|||||||
{% tab title="Go" %}
|
{% tab title="Go" %}
|
||||||
```go
|
```go
|
||||||
nc, err := nats.Connect("demo.nats.io",
|
nc, err := nats.Connect("demo.nats.io",
|
||||||
nats.ErrorHandler(func(nc *nats.Conn, s *nats.Subscription, err error) {
|
nats.ErrorHandler(func(nc *nats.Conn, s *nats.Subscription, err error) {
|
||||||
if s != nil {
|
if s != nil {
|
||||||
log.Printf("Async error in %q/%q: %v", s.Subject, s.Queue, err)
|
log.Printf("Async error in %q/%q: %v", s.Subject, s.Queue, err)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("Async error outside subscription: %v", err)
|
log.Printf("Async error outside subscription: %v", err)
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user