Documentation
¶
Index ¶
- type Document
- func (d Document) Array(name string, defaultValue ...[]Value) []Value
- func (d Document) Bool(name string, defaultValue ...bool) bool
- func (d Document) Date(name string, defaultValue ...time.Time) time.Time
- func (d Document) Duration(name string, defaultValue ...time.Duration) time.Duration
- func (d Document) Float(name string, defaultValue ...float64) float64
- func (d Document) Float32(name string, defaultValue ...float32) float32
- func (d Document) Float64(name string, defaultValue ...float64) float64
- func (d Document) Int(name string, defaultValue ...int) int
- func (d Document) Int16(name string, defaultValue ...int16) int16
- func (d Document) Int32(name string, defaultValue ...int32) int32
- func (d Document) Int64(name string, defaultValue ...int64) int64
- func (d Document) Int8(name string, defaultValue ...int8) int8
- func (d Document) Section(path string) (*Node, bool)
- func (d Document) String(name string, defaultValue ...string) string
- func (d Document) Strings(name string, defaultValues ...string) []string
- func (d Document) ToString() string
- func (d Document) Value(path string) (Value, bool)
- type Kind
- type Node
- type Parser
- type Value
- func (v Value) AsArray() []Value
- func (v Value) AsBool() bool
- func (v Value) AsDate() time.Time
- func (v Value) AsDuration() time.Duration
- func (v Value) AsFloat() float64
- func (v Value) AsFloat32() float32
- func (v Value) AsFloat64() float64
- func (v Value) AsInt() int
- func (v Value) AsInt16() int16
- func (v Value) AsInt32() int32
- func (v Value) AsInt64() int64
- func (v Value) AsInt8() int8
- func (v Value) AsString() string
- func (v Value) AsStrings() []string
- func (v Value) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func ParseDefaultArray ¶
func (Value) AsDuration ¶
Click to show internal directories.
Click to hide internal directories.