refactor: move const in config

This commit is contained in:
2026-05-23 17:17:35 +03:00
parent 8a3da3b017
commit 593475f2cf
6 changed files with 24 additions and 24 deletions
+4 -3
View File
@@ -9,9 +9,10 @@ import (
)
type Config struct {
LogLevel string `env:"LOG_LEVEL" env-default:"INFO"`
Mode string `env:"MODE" env-default:"DEV"`
Port int `env:"PORT" env-default:"9000"`
LogLevel string `env:"LOG_LEVEL" env-default:"INFO"`
Mode string `env:"MODE" env-default:"DEV"`
Port int `env:"PORT" env-default:"9000"`
Heartbeat int `env:"HEARTBEAT" env-default:"5"`
}
func NewConfig() (*Config, error) {