Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error describes why it was impossible to assign a value to the struct's field.
type Source ¶
type Source interface { // Err returns the first error that was encountered by the source Err() error // Lookup returns string form value for the field and false if value ws not found Lookup(reflect.StructField) (string, bool) }
Source provides values for the fields
func FromReader ¶
FromReader utilizes reader as a source for lookup. For any line matched to 'key=value' pattern it creates an entry in the internal map. Then map is used as the source for values.
Click to show internal directories.
Click to hide internal directories.