Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DebugMode bool `env:"DEBUG_MODE" envDefault:"true"` Database Database `envPrefix:"DATABASE_"` FileSystem FileSystem `env:"FILE_SYSTEM_"` Server Server `envPrefix:"SERVER_"` Upload Upload `envPrefix:"UPLOAD_"` }
func NewFromEnv ¶
type FileSystem ¶
type FileSystem struct {
BasePath string `env:"BASE_PATH" envDefault:"./tmp"`
}
Click to show internal directories.
Click to hide internal directories.