Understand the NATS By Example directory structure
mainThe repository is organized by NATS concepts. Under the examples/ directory, examples are grouped into categories. Each example contains one or more client implementations (e.g., go, python, cli, or shell).
Structure Pattern:
examples/<category>/<example>/<client>/main.[ext]
- Category: A high-level NATS concept (e.g.,
messaging). - Example: A specific pattern or feature (e.g.,
pub-sub). - Client: The language or tool used to implement the example (e.g.,
go,cli). - Entrypoint: The file
main.[ext](e.g.,main.go,main.sh) is the required entrypoint for the client.
examples/
meta.yaml
messaging/
meta.yaml
pub-sub/
meta.yaml
cli/
main.sh
go/
main.go
python/
main.py