diff --git a/.gitignore b/.gitignore index 2620ce7..5c91a02 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,10 @@ # Go workspace file go.work +go.work.sum .env bin/* + +config.yaml diff --git a/go.mod b/go.mod index 89a6fa5..467dce7 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module gitea.libretechconsulting.com/rmcguire/ambient-weather-local-exporter go 1.23.4 require ( - gitea.libretechconsulting.com/rmcguire/go-app v0.1.1 + gitea.libretechconsulting.com/rmcguire/go-app v0.1.2 github.com/gorilla/schema v1.4.1 github.com/rs/zerolog v1.33.0 go.opentelemetry.io/otel v1.33.0 @@ -13,6 +13,7 @@ require ( require ( github.com/beorn7/perks v1.0.1 // indirect + github.com/caarlos0/env/v11 v11.3.1 // indirect github.com/caarlos0/env/v9 v9.0.0 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect diff --git a/go.sum b/go.sum index 3392b64..c0bb394 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,12 @@ gitea.libretechconsulting.com/rmcguire/go-app v0.1.0 h1:H4TMgQ463oRNOyoi0FAvfGtO gitea.libretechconsulting.com/rmcguire/go-app v0.1.0/go.mod h1:p0ajkpFvzzD6VZ4xSjuowtwGRb1DjMfo/iG6LyFqFCs= gitea.libretechconsulting.com/rmcguire/go-app v0.1.1 h1:Hrxqi1tqz8mf0baBsWgFe/S4jyMtIuPqH2FlanJUMNc= gitea.libretechconsulting.com/rmcguire/go-app v0.1.1/go.mod h1:p0ajkpFvzzD6VZ4xSjuowtwGRb1DjMfo/iG6LyFqFCs= +gitea.libretechconsulting.com/rmcguire/go-app v0.1.2 h1:28ha36+TXKLW4imzNMNO8fubWbCxEX59+V1RNpKgqR8= +gitea.libretechconsulting.com/rmcguire/go-app v0.1.2/go.mod h1:MJGwEJGW1vOgWnJdmKC0R/WvqWy2t0S0q+mKpPpd/xc= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/caarlos0/env/v11 v11.3.1 h1:cArPWC15hWmEt+gWk7YBi7lEXTXCvpaSdCiZE2X5mCA= +github.com/caarlos0/env/v11 v11.3.1/go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U= github.com/caarlos0/env/v9 v9.0.0 h1:SI6JNsOA+y5gj9njpgybykATIylrRMklbs5ch6wO6pc= github.com/caarlos0/env/v9 v9.0.0/go.mod h1:ye5mlCVMYh6tZ+vCgrs/B95sj88cg5Tlnc0XIzgZ020= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= diff --git a/unset_env.sh b/unset_env.sh new file mode 100755 index 0000000..0e1c7ea --- /dev/null +++ b/unset_env.sh @@ -0,0 +1,8 @@ +#!env sh +unset APP_NAME +unset APP_LOG_LEVEL +unset APP_LOG_FORMAT +unset APP_LOG_TIME_FORMAT +unset APP_HTTP_LISTEN +unset APP_OTEL_STDOUT_ENABLED +unset APP_OTEL_METRIC_INTERVAL_SECS