You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
427 B

package main
import (
"context"
"log"
"os"
"github.com/gabehf/kanpeki/app"
"github.com/gabehf/kanpeki/internal/cfg"
"github.com/gabehf/kanpeki/internal/db/sqlite"
)
func main() {
ctx := context.Background()
db, err := sqlite.New(&cfg.Config{})
if err != nil {
log.Fatalf("%s\n", err)
}
defer db.Close()
if err := app.Run(ctx, os.Getenv, os.Stdout, db); err != nil {
log.Fatalf("%s\n", err)
os.Exit(1)
}
}