Astro needs Go 1.26 or later. The pkg/ libraries have no dependencies outside the standard library, so importing one pulls in nothing else. The CLI adds Cobra for its command tree.
Library
go get github.com/ravisuhag/astroThen import the packages you need:
import (
"github.com/ravisuhag/astro/pkg/spp"
"github.com/ravisuhag/astro/pkg/tmdl"
)Each protocol lives in its own package under pkg/. Nothing pulls in anything else you did not ask for.
Command line
go install github.com/ravisuhag/astro@latestThat puts an astro binary in your GOBIN. Check it works:
astro spp encode --apid 100 --type tm --data 68656c6c6fFrom source
git clone https://github.com/ravisuhag/astro
cd astro
make testThe Makefile has the gates the project runs in CI: make test, make race, make cover, make fuzz-smoke, and make lint.
Next
- Go quickstart, build and parse a packet
- CLI quickstart, do the same from a terminal
- The stack, how the layers fit together