Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrUnsupportedFieldType cer.Error = "unsupported field type" ErrModelHasEmptyStruct cer.Error = "an input struct has no fields" ErrNotAStruct cer.Error = "the configuration must be a struct" ErrNotAddressable cer.Error = "the main struct must be pointed out via pointer" ErrNotAddressableField cer.Error = "the value is not addressable" ErrProcessing cer.Error = "processing error" ErrBaseTypeNotMatch cer.Error = "types not match" ErrInvalidOptions cer.Error = "invalid value options" ErrInvalidOptionsType cer.Error = "invalid options type" ErrExceedingExpectValue cer.Error = "exceeding the expected value" ErrUnsupportedFieldTag cer.Error = "unsupported tag" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurator ¶
func New ¶
func New(name string, paths ...string) *Configurator
func (*Configurator) LoadOptions ¶
func (c *Configurator) LoadOptions() error
func (*Configurator) LoadSettings ¶
func (c *Configurator) LoadSettings(config interface{}) error
func (*Configurator) ReadOptions ¶
func (c *Configurator) ReadOptions(config io.Reader) error
type LoadValues ¶
type LoadValues map[string]interface{}
Click to show internal directories.
Click to hide internal directories.