Added godotenv

This commit is contained in:
Robin Dittmar
2026-07-08 12:22:08 +02:00
parent 584462ab6d
commit c61884d6ba
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -10,6 +10,7 @@ import (
"syscall"
"time"
"github.com/joho/godotenv"
"github.com/robindittmar/dttmr-api/internal/api/router"
"github.com/robindittmar/dttmr-api/internal/telemetry"
)
@@ -25,6 +26,8 @@ func main() {
}
func run(serviceName string, serviceVersion string) error {
_ = godotenv.Load(".env")
baseHandler := slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelInfo,
})