Documentation
¶
Index ¶
- func Parse(configPath string, st any) error
- type Elem
- func (e *Elem) Bool() bool
- func (e *Elem) Children() map[string]*Elem
- func (e *Elem) Float() float64
- func (e *Elem) Int() int
- func (e *Elem) Int64() int64
- func (e *Elem) Key(key string) *Elem
- func (e *Elem) Len() int
- func (e *Elem) MustBool(defaultValue bool) bool
- func (e *Elem) MustFloat(defaultValue float64) float64
- func (e *Elem) MustInt(defaultValue int) int
- func (e *Elem) MustInt64(defaultValue int64) int64
- func (e *Elem) MustString(defaultValue string) string
- func (e *Elem) Next() *Elem
- func (e *Elem) Parse(st any)
- func (e *Elem) String() string
- type Loader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Elem ¶
type Elem struct {
// contains filtered or unexported fields
}
func (*Elem) MustString ¶
Click to show internal directories.
Click to hide internal directories.