Documentation ¶
Overview ¶
Package config provides a simple logic that will read configuration from configmaps, io.Reader or envvar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func From ¶
From read from an io (file, byte buffer) and populates the specified struct based on the input and environment variables.
c := struct { Name string St struct { Name string Port int List []string } `yaml:"astruct"` }{}
func FromConfigMap ¶
func FromConfigMap(i interface{}) error
FromConfigMap read a config from the path `./config.yaml`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.