Registry / messaging / nats-io-stan-go

nats-io-stan-go

JSON →
library0.10.4gogounverified

A Go client for the NATS Streaming messaging system.

go get github.com/nats-io/stan.go
INSTALL
IMPORT
SIG · NATS-IO-STAN-GO
N
nats-io-stan-go
messaginggov0.10.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

stan
github.com/nats-io/stan.go

Connect to a NATS Streaming cluster and publish a message.

package main import ( "github.com/nats-io/stan.go" ) func main() { sc, err := stan.Connect("test-cluster", "client-id") if err != nil { panic(err) } defer sc.Close() sc.Publish("foo", []byte("hello")) }
Debug
Known issues
breakingNATS Streaming is deprecated in favor of NATS JetStream.
fix
Consider using `github.com/nats-io/nats.go` with JetStream for new projects.
affects: >=0.10.0
Upgrade
Version history
0.10.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
9
OpenAI (training)
1
Resources
nats-io-stan-go — go get nats-io-stan-go · libregistry