Documentation
¶
Index ¶
Constants ¶
View Source
const (
APP_ENV = "APP_ENV"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AplicationEnv ¶
type AplicationEnv string
const ( PRODUCTION_ENV AplicationEnv = "production" DEVELOP_ENV AplicationEnv = "develop" TEST_ENV AplicationEnv = "test" )
type Config ¶
type Config struct { TELEGRAM_TOKEN string `mapstructure:"TELEGRAM_TOKEN"` POSTGRES_USER string `mapstructure:"POSTGRES_USER"` POSTGRES_PASS string `mapstructure:"POSTGRES_PASS"` POSTGRES_DBNAME string `mapstructure:"POSTGRES_DBNAME"` POSTGRES_HOST string `mapstructure:"POSTGRES_HOST"` POSTGRES_PORT int `mapstructure:"POSTGRES_PORT"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.