Skip to content
/ appx Public

Go library for building applications.

License

Notifications You must be signed in to change notification settings

cristalhq/appx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

adb3f88 · Oct 26, 2022

History

4 Commits
Sep 3, 2022
Sep 3, 2022
Sep 3, 2022
Sep 3, 2022
Oct 26, 2022
Sep 3, 2022
Sep 3, 2022

Repository files navigation

appx

build-img pkg-img reportcard-img coverage-img version-img

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

Features

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

See GUIDE.md for more details

Install

Go version 1.17+

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
}

Also see examples: examples_test.go.

Documentation

See these docs.

License

MIT License.