Documentation ¶
Overview ¶
Package config provides data structs and methods to store the application's configuration details
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port uint `env:"PORT" envDefault:"8000"` PostgresURL string `env:"POSTGRES_URL" envDefault:"postgres://user:pass@127.0.0.1/simple-service"` }
Config is responsible for holding the application configuration variables. Each configuration point is also exported as an environment variable.
Click to show internal directories.
Click to hide internal directories.