Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(data []byte, lookup LookupFunc) (*core.Config, error)
func RenderEnvYAML ¶
func RenderEnvYAML(in []byte, lookup LookupFunc) ([]byte, error)
RenderEnvYAML performs $env substitution first, then interpolates any _-prefixed keys. Returns error if required env or interpolated config fields are missing.
Types ¶
type LookupFunc ¶
type MissingEnvError ¶
type MissingEnvError struct {
Missing []string
}
func (*MissingEnvError) Error ¶
func (e *MissingEnvError) Error() string
Click to show internal directories.
Click to hide internal directories.