Documentation ¶
Index ¶
- func IntValue(val any) (int, error)
- func Select(ctx context.Context, parameter, elem any) (out any, err error)
- func SelectField(parameter, field any) (name string, value any, err error)
- func SelectIndex(parameter []any, idx any) (offset int, value any, err error)
- func SelectKey(parameter map[string]any, key any) (name string, value any, err error)
- func Selector(path gval.Evaluables) gval.Evaluable
- func StringValue(val any) (string, error)
- type IndexOutOfBoundsError
- type Indexable
- type UnexpectedIndexTypeError
- type UnexpectedKeyTypeError
- type UnexpectedStringIndexError
- type UnknownFieldError
- type UnknownKeyError
- type UnsupportedValueTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringValue ¶
Types ¶
type IndexOutOfBoundsError ¶
type IndexOutOfBoundsError struct {
Index int
}
func (*IndexOutOfBoundsError) Error ¶
func (e *IndexOutOfBoundsError) Error() string
type UnexpectedIndexTypeError ¶
type UnexpectedIndexTypeError struct {
RawIndex any
}
func (*UnexpectedIndexTypeError) Error ¶
func (e *UnexpectedIndexTypeError) Error() string
type UnexpectedKeyTypeError ¶
type UnexpectedKeyTypeError struct {
RawKey any
}
func (*UnexpectedKeyTypeError) Error ¶
func (e *UnexpectedKeyTypeError) Error() string
type UnexpectedStringIndexError ¶
func (*UnexpectedStringIndexError) Error ¶
func (e *UnexpectedStringIndexError) Error() string
func (*UnexpectedStringIndexError) Unwrap ¶
func (e *UnexpectedStringIndexError) Unwrap() error
type UnknownFieldError ¶
type UnknownFieldError struct {
Field string
}
func (*UnknownFieldError) Error ¶
func (e *UnknownFieldError) Error() string
type UnknownKeyError ¶
type UnknownKeyError struct {
Key string
}
func (*UnknownKeyError) Error ¶
func (e *UnknownKeyError) Error() string
type UnsupportedValueTypeError ¶
func (*UnsupportedValueTypeError) Error ¶
func (e *UnsupportedValueTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.