Registry / messaging / nats-io-go-nats

nats-io-go-nats

JSON →
library1.8.1gogounverified

A Go client for the NATS messaging system.

go get github.com/nats-io/go-nats
INSTALL
IMPORT
SIG · NATS-IO-GO-NATS
N
nats-io-go-nats
messaginggov1.8.1
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.

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

Connect and publish a message to NATS

package main import ( "github.com/nats-io/go-nats" ) func main() { nc, err := nats.Connect(nats.DefaultURL) if err != nil { panic(err) } defer nc.Close() nc.Publish("foo", []byte("Hello World")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.8.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
OpenAI (training)
1
Resources
nats-io-go-nats — go get nats-io-go-nats · libregistry