Go library for building applications. Dramatically simple. For a CLI tool see cristalhq/acmd.
- Simple API.
- Dependency-free.
- Dramatically simple.
See these docs or GUIDE.md for more details.
Go version 1.18+
go get github.com/cristalhq/appx
import (
"context"
"os"
"github.com/cristalhq/appx"
)
func main() {
ctx := appx.Context()
if err := run(ctx, os.Args[1:]); err != nil {
panic(err)
}
}
func run(ctx context.Context, args []string) error {
// do good things
return nil
}
See examples: example_test.go.