From 5f0ddbcbd75486c95b0ae9accfce6600cba71fde Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 9 Jul 2024 12:32:22 +0200 Subject: [PATCH] Formatting with blank lines --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index f087f8d..f59ab25 100644 --- a/main.go +++ b/main.go @@ -30,16 +30,20 @@ func init() { ctx router.ServerContext err error ) + if err = env.Load(); err != nil { log.Fatalf("error loading env vars: %v", err) } + flag.StringVar(&dbUrl, "DATABASE_URL", "delphi.market", "Public URL of website") flag.StringVar(&lndAddress, "LND_ADDRESS", "localhost:10001", "LND gRPC server address") flag.StringVar(&lndCert, "LND_CERT", "", "Path to LND TLS certificate") flag.StringVar(&lndMacaroonDir, "LND_MACAROON_DIR", "", "LND macaroon directory") flag.StringVar(&lndNetwork, "LND_NETWORK", "regtest", "LND network") env.Parse() + figlet() + log.Printf("Commit: %s", env.CommitShortSha) log.Printf("Public URL: %s", env.PublicURL) log.Printf("Environment: %s", env.Env)