Package types contains the framework-defined data types and values, such as boolean, floating point, integer, list, map, object, set, and string.
This package contains creation functions and type aliases for most provider use cases. The actual schema-ready type and value type implementations are under the basetypes package. Embed those basetypes implementations to create custom types.
This section is empty.
BoolNull creates a Bool with a null value. Determine whether the value is null via the Bool type IsNull method.
BoolPointerValue creates a Bool with a null value if nil or a known value.
BoolUnknown creates a Bool with an unknown value. Determine whether the value is unknown via the Bool type IsUnknown method.
BoolValue creates a Bool with a known value. Access the value via the Bool type ValueBool method.
DynamicNull creates a Dynamic with a null value. Determine whether the value is null via the Dynamic type IsNull method.
DynamicUnknown creates a Dynamic with an unknown value. Determine whether the value is unknown via the Dynamic type IsUnknown method.
DynamicValue creates a Dynamic with a known value. Access the value via the Dynamic type UnderlyingValue method.
Float32Null creates a Float32 with a null value. Determine whether the value is null via the Float32 type IsNull method.
Float32PointerValue creates a Float32 with a null value if nil or a known value.
Float32Unknown creates a Float32 with an unknown value. Determine whether the value is unknown via the Float32 type IsUnknown method.
Float32Value creates a Float32 with a known value. Access the value via the Float32 type ValueFloat32 method.
Float64Null creates a Float64 with a null value. Determine whether the value is null via the Float64 type IsNull method.
Float64PointerValue creates a Float64 with a null value if nil or a known value.
Float64Unknown creates a Float64 with an unknown value. Determine whether the value is unknown via the Float64 type IsUnknown method.
Float64Value creates a Float64 with a known value. Access the value via the Float64 type ValueFloat64 method.
Int32Null creates a Int32 with a null value. Determine whether the value is null via the Int32 type IsNull method.
Int32PointerValue creates a Int32 with a null value if nil or a known value.
Int32Unknown creates a Int32 with an unknown value. Determine whether the value is unknown via the Int32 type IsUnknown method.
Int32Value creates a Int32 with a known value. Access the value via the Int32 type ValueInt32 method.
Int64Null creates a Int64 with a null value. Determine whether the value is null via the Int64 type IsNull method.
Int64PointerValue creates a Int64 with a null value if nil or a known value.
Int64Unknown creates a Int64 with an unknown value. Determine whether the value is unknown via the Int64 type IsUnknown method.
Int64Value creates a Int64 with a known value. Access the value via the Int64 type ValueInt64 method.
ListNull creates a List with a null value. Determine whether the value is null via the List type IsNull method.
ListUnknown creates a List with an unknown value. Determine whether the value is unknown via the List type IsUnknown method.
ListValue creates a List with a known value. Access the value via the List type Elements or ElementsAs methods.
ListValueFrom creates a List with a known value, using reflection rules. The elements must be a slice which can convert into the given element type. Access the value via the List type Elements or ElementsAs methods.
ListValueMust creates a List with a known value, converting any diagnostics into a panic at runtime. Access the value via the List type Elements or ElementsAs methods.
This creation function is only recommended to create List values which will not potentially affect practitioners, such as testing, or exhaustively tested provider logic.
MapNull creates a Map with a null value. Determine whether the value is null via the Map type IsNull method.
MapUnknown creates a Map with an unknown value. Determine whether the value is unknown via the Map type IsUnknown method.
MapValue creates a Map with a known value. Access the value via the Map type Elements or ElementsAs methods.
MapValueFrom creates a Map with a known value, using reflection rules. The elements must be a map which can convert into the given element type. Access the value via the Map type Elements or ElementsAs methods.
MapValueMust creates a Map with a known value, converting any diagnostics into a panic at runtime. Access the value via the Map type Elements or ElementsAs methods.
This creation function is only recommended to create Map values which will not potentially affect practitioners, such as testing, or exhaustively tested provider logic.
NumberNull creates a Number with a null value. Determine whether the value is null via the Number type IsNull method.
NumberUnknown creates a Number with an unknown value. Determine whether the value is unknown via the Number type IsUnknown method.
NumberValue creates a Number with a known value. Access the value via the Number type ValueBigFloat method. If the given value is nil, a null Number is created.
ObjectNull creates a Object with a null value. Determine whether the value is null via the Object type IsNull method.
ObjectUnknown creates a Object with an unknown value. Determine whether the value is unknown via the Object type IsUnknown method.
ObjectValue creates a Object with a known value. Access the value via the Object type Attributes or As methods.
ObjectValueFrom creates a Object with a known value, using reflection rules. The attributes must be a struct which can convert into the given attribute types. Access the value via the Object type Attributes or As methods.
ObjectValueMust creates a Object with a known value, converting any diagnostics into a panic at runtime. Access the value via the Object type Attributes or As methods.
This creation function is only recommended to create Object values which will not potentially affect practitioners, such as testing, or exhaustively tested provider logic.
SetNull creates a Set with a null value. Determine whether the value is null via the Set type IsNull method.
SetUnknown creates a Set with an unknown value. Determine whether the value is unknown via the Set type IsUnknown method.
SetValue creates a Set with a known value. Access the value via the Set type Elements or ElementsAs methods.
SetValueFrom creates a Set with a known value, using reflection rules. The elements must be a slice which can convert into the given element type. Access the value via the Set type Elements or ElementsAs methods.
SetValueMust creates a Set with a known value, converting any diagnostics into a panic at runtime. Access the value via the Set type Elements or ElementsAs methods.
This creation function is only recommended to create Set values which will not potentially affect practitioners, such as testing, or exhaustively tested provider logic.
StringNull creates a String with a null value. Determine whether the value is null via the String type IsNull method.
StringPointerValue creates a String with a null value if nil or a known value.
StringUnknown creates a String with an unknown value. Determine whether the value is unknown via the String type IsUnknown method.
StringValue creates a String with a known value. Access the value via the String type ValueString method.
TupleNull creates a Tuple with a null value. Determine whether the value is null via the Tuple type IsNull method.
TupleUnknown creates a Tuple with an unknown value. Determine whether the value is unknown via the Tuple type IsUnknown method.
TupleValue creates a Tuple with a known value. Access the value via the Tuple type Elements method.
TupleValueMust creates a Tuple with a known value, converting any diagnostics into a panic at runtime. Access the value via the Tuple type Elements method.
This creation function is only recommended to create Tuple values which will not potentially affect practitioners, such as testing, or exhaustively tested provider logic.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4