Documentation ¶ Index ¶ type Config func New() (*Config, error) type Db type File type Server Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Db Db Server Server File File } Config func New ¶ func New() (*Config, error) New - contructor type Db ¶ type Db struct { Uri string `envconfig:"DB_URI" required:"true"` User string `envconfig:"DB_USER" required:"true"` Password string `envconfig:"DB_PASSWORD" required:"true"` Name string `envconfig:"DB_NAME" required:"true"` } Db type File ¶ type File struct { SaveDir string `envconfig:"FILE_SAVE_DIR" required:"true"` } File type Server ¶ type Server struct { Port int `envconfig:"SERVER_PORT" required:"true"` } Server Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.