()
| 130 | } |
| 131 | |
| 132 | func ExampleSubscription_Unsubscribe() { |
| 133 | nc, _ := nats.Connect(nats.DefaultURL) |
| 134 | defer nc.Close() |
| 135 | |
| 136 | sub, _ := nc.SubscribeSync("foo") |
| 137 | // ... |
| 138 | sub.Unsubscribe() |
| 139 | } |
| 140 | |
| 141 | func ExampleConn_Publish() { |
| 142 | nc, _ := nats.Connect(nats.DefaultURL) |
nothing calls this directly
no test coverage detected