From 083c995d64b6df82980431765abb3895fe0c4eeb Mon Sep 17 00:00:00 2001 From: slaventius Date: Mon, 13 Feb 2023 10:01:19 +0300 Subject: [PATCH] * --- go.sum | 2 -- internal/config/config.go | 12 ++++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/go.sum b/go.sum index dd6c56a..b501fe7 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -git.slaventius.ru/test3k/umate v0.0.0-20230213061556-8529690e1553 h1:Ojj8kD7B3MwEtopOorx/EZzEHITuBy1BgJsVQV9r598= -git.slaventius.ru/test3k/umate v0.0.0-20230213061556-8529690e1553/go.mod h1:xE7ik2EnLB+CNDJA5+HbRIwAk+V7sgUjS0HPeXS5Ka0= git.slaventius.ru/test3k/umate v0.0.0-20230213064240-bf21e2057702 h1:C80T3ynUeO7wpGXIZSCNN3tLYpDqH4j/I06LVoBtoXs= git.slaventius.ru/test3k/umate v0.0.0-20230213064240-bf21e2057702/go.mod h1:xE7ik2EnLB+CNDJA5+HbRIwAk+V7sgUjS0HPeXS5Ka0= github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d h1:S2NE3iHSwP0XV47EEXL8mWmRdEfGscSJ+7EgePNgt0s= diff --git a/internal/config/config.go b/internal/config/config.go index 24b69a0..1313c5e 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -6,24 +6,24 @@ import ( "github.com/kelseyhightower/envconfig" ) -type DbConfig struct { +type dbConfig struct { Host string `envconfig:"DB_HOST"` Port int `envconfig:"DB_PORT"` } -type AppConfig struct { +type appConfig struct { Port int `envconfig:"APP_PORT"` } -type SentryConfig struct { +type sentryConfig struct { DSN string `envconfig:"SENTRY_DSN"` } // ... type Config struct { - Db DbConfig - App AppConfig - Sentry SentryConfig + Db dbConfig + App appConfig + Sentry sentryConfig } func NewConfig() *Config {