Documentation ¶
Index ¶
- Variables
- func Equal(a, b zed.Value) bool
- func Promote(a, b zed.Value) (int, error)
- func ToBool(val zed.Value) (bool, bool)
- func ToFloat(val zed.Value) (float64, bool)
- func ToInt(val zed.Value) (int64, bool)
- func ToNumeric[T constraints.Integer | constraints.Float](val zed.Value) T
- func ToUint(val zed.Value) (uint64, bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncompatibleTypes = errors.New("incompatible types")
View Source
var ErrOverflow = errors.New("integer overflow: uint64 value too large for int64")
Functions ¶
func ToNumeric ¶ added in v1.15.0
func ToNumeric[T constraints.Integer | constraints.Float](val zed.Value) T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.