Documentation ¶
Overview ¶
Package confiqenv allows confiq values to be loaded from Env format.
Index ¶
- Variables
- type Container
- func (c *Container) Errors() []error
- func (c *Container) FromBytes(input []byte) *Container
- func (c *Container) FromEnvironment() *Container
- func (c *Container) FromFile(path string) *Container
- func (c *Container) FromReader(reader io.Reader) *Container
- func (c *Container) FromString(input string) *Container
- func (c *Container) Get() []any
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container is a struct that holds the loaded values.
func Load ¶
func Load() *Container
Load creates an empty container, into which the JSON values can be loaded.
func (*Container) FromEnvironment ¶
FromEnvironment loads config data from the environment variables.
func (*Container) FromReader ¶
FromReader loads a Env file from a reader stream.
func (*Container) FromString ¶
FromString loads a Env file from the given string.
Click to show internal directories.
Click to hide internal directories.