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.
22 lines
446 B
22 lines
446 B
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
|
|
"git.mnrva.dev/gabehf/go-project-template/app"
|
|
"git.mnrva.dev/gabehf/go-project-template/internal/cfg"
|
|
"git.mnrva.dev/gabehf/go-project-template/internal/db/memorydb"
|
|
)
|
|
|
|
func main() {
|
|
ctx := context.Background()
|
|
store := memorydb.New(&cfg.Config{})
|
|
defer store.Close()
|
|
if err := app.Run(ctx, os.Getenv, os.Stdout, store); err != nil {
|
|
fmt.Fprintf(os.Stderr, "%s\n", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|