Documentation ¶
Index ¶
- func NewTypedValue(dataType data.Type, value interface{}) (data.TypedValue, error)
- func ToAny(val interface{}) (interface{}, error)
- func ToArray(val interface{}) ([]interface{}, error)
- func ToArrayIfNecessary(val interface{}) (interface{}, error)
- func ToBool(val interface{}) (bool, error)
- func ToBytes(val interface{}) ([]byte, error)
- func ToConnection(val interface{}) (connection.Manager, error)
- func ToDateTime(val interface{}) (time.Time, error)
- func ToFloat32(val interface{}) (float32, error)
- func ToFloat64(val interface{}) (float64, error)
- func ToInt(val interface{}) (int, error)
- func ToInt32(val interface{}) (int32, error)
- func ToInt64(val interface{}) (int64, error)
- func ToObject(val interface{}) (map[string]interface{}, error)
- func ToParams(val interface{}) (map[string]string, error)
- func ToString(val interface{}) (string, error)
- func ToType(value interface{}, dataType data.Type) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTypedValue ¶
func NewTypedValue(dataType data.Type, value interface{}) (data.TypedValue, error)
func ToArray ¶
func ToArray(val interface{}) ([]interface{}, error)
ToArray coerce a value to an array of empty interface values
func ToArrayIfNecessary ¶
func ToArrayIfNecessary(val interface{}) (interface{}, error)
ToArrayIfNecessary coerce a value to an array if it isn't one already
func ToConnection ¶ added in v0.9.3
func ToConnection(val interface{}) (connection.Manager, error)
func ToDateTime ¶ added in v1.0.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.