Documentation
¶
Index ¶
- type Config
- func (c *Config) Get(key string) (interface{}, error)
- func (c *Config) GetBool(key string) (bool, error)
- func (c *Config) GetFloat64(key string) (float64, error)
- func (c *Config) GetInt64(key string) (int64, error)
- func (c *Config) GetString(key string) (string, error)
- func (c *Config) Set(key string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config implementation for handling environment vars.
func New ¶
New creates a new config. By providing a reader, which might contain environment variables coming for a file, you can set env vars. This is useful for development.
func (*Config) GetFloat64 ¶
GetFloat64 returns a float64 env var.
Click to show internal directories.
Click to hide internal directories.