Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
UseDotEnv bool
}
Config is a struct that holds the configuration for the environment initialization process.
type Env ¶
type Env struct { // See that the `env` tag is used to specify the name of the environment variable // and the `default` tag is used to specify a default value if the environment variable // is not set. If a default value is not provided and the environment variable is not set, // the application will panic. BaseUrl string `env:"BASE_URL" default:"http://localhost:3000"` FromEmail string `env:"FROM_EMAIL"` MjApiKeyPublic string `env:"MJ_APIKEY_PUBLIC"` MjApiKeyPrivate string `env:"MJ_APIKEY_PRIVATE"` }
Env is a struct that holds all the environment variables that the application needs. It's used to initialize the environment variables and provide a single source of truth for the application's configuration.
Click to show internal directories.
Click to hide internal directories.