github.com/nais/knorten@v0.0.0-20240104110906-55926958e361/local/main.go (about)

     1  package main
     2  
     3  import (
     4  	"context"
     5  	"fmt"
     6  
     7  	"github.com/nais/knorten/local/dbsetup"
     8  )
     9  
    10  const (
    11  	dbname = "knorten"
    12  )
    13  
    14  func main() {
    15  	ctx := context.Background()
    16  	dbURL := "postgres://postgres:postgres@localhost:5432"
    17  
    18  	err := dbsetup.SetupDB(ctx, dbURL, dbname)
    19  	if err != nil {
    20  		panic(err)
    21  	}
    22  
    23  	fmt.Println("All good! Run `make local` to start testing.")
    24  }