Astro~/0.3
** Docs / Getting started / Install * PAGE 01 / 27
** Astro * Docs
** /docs/start/install

Install

Add the library to a Go project, or install the command line tool.

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/astro

Then 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@latest

That puts an astro binary in your GOBIN. Check it works:

astro spp encode --apid 100 --type tm --data 68656c6c6f

From source

git clone https://github.com/ravisuhag/astro
cd astro
make test

The Makefile has the gates the project runs in CI: make test, make race, make cover, make fuzz-smoke, and make lint.

Next