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

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.