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,
})
+1
View File
@@ -3,6 +3,7 @@ module github.com/robindittmar/dttmr-api
go 1.26
require (
github.com/joho/godotenv v1.5.1
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0
go.opentelemetry.io/otel v1.44.0
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.44.0