Documentation ¶
Index ¶
- func Get(g Getter, key string) (s string, b bool)
- func GetFloat(g Getter, key string) (f float64, err error)
- func GetFloat32(g Getter, key string) (f float32, err error)
- func GetFloat64(g Getter, key string) (f float64, err error)
- func GetInt(g Getter, key string) (i int, err error)
- func GetVal(g Getter, key string, val Value) (err error)
- func MustGet(g Getter, key string) (s string, err error)
- func ParseStruct(g Getter, s *StructInfo) (err error)
- type FieldInfoMap
- type Float32
- type Float64
- type Getter
- type Int
- type KeyNotFound
- type NumberParseFail
- type NumericalType
- type Parser
- type StructInfo
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStruct ¶
func ParseStruct(g Getter, s *StructInfo) (err error)
Types ¶
type FieldInfoMap ¶
type KeyNotFound ¶
type KeyNotFound struct {
Key string
}
func (KeyNotFound) Error ¶
func (k KeyNotFound) Error() (s string)
type NumberParseFail ¶
type NumberParseFail struct { NumericalType Source string // contains filtered or unexported fields }
func (NumberParseFail) Error ¶
func (n NumberParseFail) Error() (s string)
func (NumberParseFail) Unwrap ¶
func (n NumberParseFail) Unwrap() (err error)
type NumericalType ¶
type NumericalType int
const ( NumberInt NumericalType = iota NumberFloat32 NumberFloat64 )
func (NumericalType) String ¶
func (n NumericalType) String() (s string)
type StructInfo ¶
type StructInfo struct {
FieldMap FieldInfoMap
}
Click to show internal directories.
Click to hide internal directories.