Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶
ReadConfig reads in yaml data at provided paths into the provided interface.
Types ¶
type Option ¶
type Option func(*options)
Option is an option for reading a config.
func AddEmbedded ¶
AddEmbedded adds a struct (in) that's embedded under some key.
func AddPaths ¶
AddPaths adds the provided paths to the search paths which will be checked in the order provided.
func OverrideEnvVarPrefix ¶
OverrideEnvVarPrefix overrides the defaultEnvironmentPrefix used in finding environment variables that override config values.
func WithPathReader ¶
func WithPathReader(pathReader *peechee.PathReader) Option
WithPathReader lets you override the internal PathReader with one you've defined seperately if needed.
func WithS3Client ¶
WithS3Client adds an S3Client to the PathReader so that it can correctly grab data for S3 paths.
Click to show internal directories.
Click to hide internal directories.