github.com/navikt/knorten@v0.0.0-20240419132333-1333f46ed8b6/local/main.go (about) 1 package main 2 3 import ( 4 "context" 5 "fmt" 6 7 "github.com/navikt/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 }