Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvFile = ".env"
Functions ¶
func LoadDotenv ¶
func LoadDotenv() error
func ReadFromFile ¶
Types ¶
type Config ¶
type Config struct { Value any Overwrites Overwrites EnvPrefix string File string IgnoreEnv bool IgnoreDotEnv bool OverwritesFile string // contains filtered or unexported fields }
func (*Config) Overwrite ¶
func (c *Config) Overwrite(ov Overwrites) error
func (*Config) UnusedEnvKeys ¶
func (*Config) UsedEnvKeys ¶
type Overwrites ¶
func ReadOverwritingFile ¶
func ReadOverwritingFile(cfg any, filename string) (ov Overwrites, err error)
Click to show internal directories.
Click to hide internal directories.