package
1.3.0
Repository: https://github.com/warpstreamlabs/bento.git
Documentation: pkg.go.dev

# Functions

IClone performs a deep copy of a generic value.
ICompare returns true if both the left and right are equal according to one of the following conditions: - The types exactly match and have the same value - The types are both either a string or byte slice and the underlying data is the same - The types are both numerical and have the same value - Both types are a matching slice or map containing values matching these same conditions.
IGetBool takes a boxed value and attempts to extract a boolean from it.
IGetBytes takes a boxed value and attempts to return a byte slice value.
IGetFloat32 takes a boxed value and attempts to extract a number (float32) from it.
IGetInt takes a boxed value and attempts to extract an integer (int64) from it.
IGetNumber takes a boxed value and attempts to extract a number (float64) from it.
IGetString takes a boxed value and attempts to return a string value.
No description provided by the author
IGetTimestamp takes a boxed value and attempts to coerce it into a timestamp, either by interpretting a numerical value as a unix timestamp, or by parsing a string value as RFC3339Nano.
IGetUInt takes a boxed value and attempts to extract an unsigned integer (uint64) from it.
IIsNull returns whether a bloblang type is null, this includes Delete and Nothing types.
ISanitize takes a boxed value of any type and attempts to convert it into one of the following types: string, []byte, int64, uint64, float64, bool, []interface{}, map[string]interface{}, Delete, Nothing.
IToBool takes a boxed value and attempts to extract a boolean from it or parse it into a bool.
IToBytes takes a boxed value of any type and attempts to convert it into a byte slice.
IToFloat32 takes a boxed value and attempts to extract a number (float32) from it or parse one.
IToFloat64 takes a boxed value and attempts to extract a number (float64) from it or parse one.
IToInt takes a boxed value and attempts to extract a number (int64) from it or parse one.
IToInt16 takes a boxed value and attempts to extract a number (int64) from it or parse one.
IToInt32 takes a boxed value and attempts to extract a number (int32) from it or parse one.
IToInt8 takes a boxed value and attempts to extract a number (int8) from it or parse one.
IToNumber takes a boxed value and attempts to extract a number (float64) from it or parse one.
IToString takes a boxed value of any type and attempts to convert it into a string.
IToUint takes a boxed value and attempts to extract a number (uint64) from it or parse one.
IToUint16 takes a boxed value and attempts to extract a number (uint16) from it or parse one.
IToUint32 takes a boxed value and attempts to extract a number (uint32) from it or parse one.
IToUint8 takes a boxed value and attempts to extract a number (uint8) from it or parse one.
ITypeOf returns the type of a boxed value as a discrete ValueType.
NewTypeError creates a new type error.
NewTypeErrorFrom creates a new type error with an annotation of the query that provided the wrong type.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author

# Variables

ValueType variants.
ValueType variants.
ValueType variants.
ValueType variants.
ValueType variants.
Specialised and not generally known over ValueNumber.
ValueType variants.
ValueType variants.
ValueType variants.
ValueType variants.
ValueType variants.
ValueType variants.
ValueType variants.
ValueType variants.

# Structs

TypeError represents an error where a value of a type was required for a function, method or operator but instead a different type was found.

# Type aliases

Type represents a discrete value type supported by Bloblang queries.