package services import ( "go-cook/api/domain" "log" "os" "github.com/joho/godotenv" ) func NewEnvConfig() domain.EnvConfig { err := godotenv.Load() if err != nil { log.Println(err) } return domain.EnvConfig{ AdminToken: os.Getenv("AdminToken"), JwtSecret: os.Getenv("JwtSecret"), } }