https://github.com/osapi-io/nats-client
A Go package for connecting to and interacting with a NATS server.
https://github.com/osapi-io/nats-client
golang messaging nats-client nats-jetstream nats-messaging nats-streaming
Last synced: 5 months ago
JSON representation
A Go package for connecting to and interacting with a NATS server.
- Host: GitHub
- URL: https://github.com/osapi-io/nats-client
- Owner: osapi-io
- License: mit
- Created: 2025-02-15T19:28:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-11T18:16:00.000Z (10 months ago)
- Last Synced: 2025-08-11T20:24:12.607Z (10 months ago)
- Topics: golang, messaging, nats-client, nats-jetstream, nats-messaging, nats-streaming
- Language: Go
- Homepage:
- Size: 204 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://github.com/osapi-io/nats-client/releases/latest)
[](https://codecov.io/gh/osapi-io/nats-cllient)
[](https://goreportcard.com/report/github.com/osapi-io/nats-client)
[](LICENSE)
[](https://github.com/osapi-io/nats-client/actions/workflows/go.yml)
[](https://github.com/goreleaser)
[](https://conventionalcommits.org)

# NATS Client
A Go package for connecting to and interacting with a NATS server.
## Usage
https://github.com/osapi-io/nats-client/blob/328fbaeed5315b5d4a7db6975bdc75c8d657e567/examples/auth-none-stream/main.go#L21-L87
See the [examples][] section for additional use cases.
## Documentation
See the [generated documentation][] for details on available packages and functions.
## Testing
Enable [Remote Taskfile][] feature.
```bash
export TASK_X_REMOTE_TASKFILES=1
```
Install dependencies:
```bash
$ task go:deps
```
To execute tests:
```bash
$ task go:test
```
Auto format code:
```bash
$ task go:fmt
```
List helpful targets:
```bash
$ task
```
## License
The [MIT][] License.
[examples]: examples/
[generated documentation]: docs/gen/
[Remote Taskfile]: https://taskfile.dev/experiments/remote-taskfiles/
[MIT]: LICENSE