oderwat / go-nats-app

A Go code only PWA as proof of concept for using (embedded) NATS as communication between front and back end.
MIT License
21 stars 9 forks source link

Some useful Go packages that are related to using NATS for PWAs #2

Open oderwat opened 1 year ago

oderwat commented 1 year ago

Some useful packages

JSON Schema

I think about documenting our services with JSON Schema as part of the service code itself.

The NATS Developers do. Try:

What is it URL Comment
jsm.go a library to manage and interact with JetStream https://github.com/nats-io/jsm.go Contains a validator and their registry code
JSON Schema from Go Struct https://github.com/invopop/jsonschema
JSON Schema Validator https://github.com/xeipuuv/gojsonschema
Yaml marshalling and unmarshalling https://github.com/invopop/yaml To convert between Yaml and JSON
gedw99 commented 1 year ago

if you want you can also use the golang jq:

go install github.com/itchyny/gojq/cmd/gojq@latest

nats schema info io.nats.jetstream.api.v1.account_info_response | gojq .