Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.21 KB

README.md

File metadata and controls

60 lines (42 loc) · 1.21 KB

appx

build-img pkg-img version-img

Go library for building applications. Dramatically simple. For a CLI tool see cristalhq/acmd.

Features

  • Simple API.
  • Dependency-free.
  • Dramatically simple.

See these docs or GUIDE.md for more details.

Install

Go version 1.18+

go get github.com/cristalhq/appx

Example

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.

License

MIT License.