Documentation ¶
Index ¶
- func IsInvalidTypeError(err error) bool
- func IsKeyMissingError(err error) bool
- type InvalidTypeError
- type Node
- func (n *Node) Child(key string, optional bool) (*Node, error)
- func (n *Node) ChildAsInt(key string, optional bool) (int, error)
- func (n *Node) ChildAsInt32(key string, optional bool) (int32, error)
- func (n *Node) ChildAsInt64(key string, optional bool) (int64, error)
- func (n *Node) ChildAsInt64Array(key string, sep *regexp.Regexp, optional bool) ([]int64, error)
- func (n *Node) ChildAsString(key string, optional, trim bool) (string, error)
- func (n *Node) ChildAsStringArray(key string, sep *regexp.Regexp, optional, trim, toLower bool) ([]string, error)
- func (n *Node) Children() ([]*Node, error)
- func (n *Node) TypedChild(key string, typ kv.ValueType, optional bool) (*Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidTypeError ¶
func IsKeyMissingError ¶
Types ¶
type InvalidTypeError ¶
type InvalidTypeError struct { Key string Type kv.ValueType ExpectedType kv.ValueType // contains filtered or unexported fields }
func (*InvalidTypeError) Error ¶
func (err *InvalidTypeError) Error() string
type Node ¶
func (*Node) ChildAsInt64Array ¶
func (*Node) ChildAsString ¶
func (*Node) ChildAsStringArray ¶
Click to show internal directories.
Click to hide internal directories.