Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTwoManyInputs = errors.New("too many input types, provide only one")
Functions ¶
func FromJsonFile ¶
FromJsonFile reads a json file from the given path and loads into the target interface. An error is returned if any is encountered during the file reading or json unmarshalling.
func FromReader ¶
FromReader reads bytes off the given reader and loads into the target interface. An error is returned if any is encountered during json unmarshalling.
func WithFilePath ¶
func WithFilePath(path string) optfunc
func WithOptions ¶
WithOptions provides many ways to load config into `target`.
func WithReader ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.