Documentation ¶
Index ¶
- func AsBool(s interface{}) (bool, error)
- func AsFloat32(s interface{}) (float32, error)
- func AsFloat64(s interface{}) (float64, error)
- func AsInt(s interface{}) (int, error)
- func AsInt16(s interface{}) (int16, error)
- func AsInt32(s interface{}) (int32, error)
- func AsInt64(s interface{}) (int64, error)
- func AsInt8(s interface{}) (int8, error)
- func AsString(s interface{}) (string, error)
- func AsUInt(s interface{}) (uint, error)
- func AsUInt16(s interface{}) (uint16, error)
- func AsUInt32(s interface{}) (uint32, error)
- func AsUInt64(s interface{}) (uint64, error)
- func AsUInt8(s interface{}) (uint8, error)
- func BestEffortBool(s interface{}) bool
- func BestEffortFlat32(s interface{}) float32
- func BestEffortFlat64(s interface{}) float64
- func BestEffortInt(s interface{}) int
- func BestEffortInt16(s interface{}) int16
- func BestEffortInt32(s interface{}) int32
- func BestEffortInt64(s interface{}) int64
- func BestEffortInt8(s interface{}) int8
- func BestEffortString(s interface{}) string
- func BestEffortUInt(s interface{}) uint
- func BestEffortUInt16(s interface{}) uint16
- func BestEffortUInt32(s interface{}) uint32
- func BestEffortUInt64(s interface{}) uint64
- func BestEffortUInt8(s interface{}) uint8
- func Bool(s interface{}) bool
- func BoolType() reflect.Type
- func ConvertTo(v interface{}, proto interface{}) (interface{}, error)
- func Float32(s interface{}) float32
- func Float32Type() reflect.Type
- func Float64(s interface{}) float64
- func Float64Type() reflect.Type
- func Int(s interface{}) int
- func Int16(s interface{}) int16
- func Int16Type() reflect.Type
- func Int32(s interface{}) int32
- func Int32Type() reflect.Type
- func Int64(s interface{}) int64
- func Int64Type() reflect.Type
- func Int8(s interface{}) int8
- func Int8Type() reflect.Type
- func IntType() reflect.Type
- func String(s interface{}) string
- func StringType() reflect.Type
- func UInt(s interface{}) uint
- func UInt16(s interface{}) uint16
- func UInt16Type() reflect.Type
- func UInt32(s interface{}) uint32
- func UInt32Type() reflect.Type
- func UInt64(s interface{}) uint64
- func UInt64Type() reflect.Type
- func UInt8(s interface{}) uint8
- func UInt8Type() reflect.Type
- func UIntType() reflect.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BestEffortBool ¶
func BestEffortBool(s interface{}) bool
func BestEffortFlat32 ¶
func BestEffortFlat32(s interface{}) float32
func BestEffortFlat64 ¶
func BestEffortFlat64(s interface{}) float64
func BestEffortInt ¶
func BestEffortInt(s interface{}) int
func BestEffortInt16 ¶
func BestEffortInt16(s interface{}) int16
func BestEffortInt32 ¶
func BestEffortInt32(s interface{}) int32
func BestEffortInt64 ¶
func BestEffortInt64(s interface{}) int64
func BestEffortInt8 ¶
func BestEffortInt8(s interface{}) int8
func BestEffortString ¶
func BestEffortString(s interface{}) string
func BestEffortUInt ¶
func BestEffortUInt(s interface{}) uint
func BestEffortUInt16 ¶
func BestEffortUInt16(s interface{}) uint16
func BestEffortUInt32 ¶
func BestEffortUInt32(s interface{}) uint32
func BestEffortUInt64 ¶
func BestEffortUInt64(s interface{}) uint64
func BestEffortUInt8 ¶
func BestEffortUInt8(s interface{}) uint8
func ConvertTo ¶
func ConvertTo(v interface{}, proto interface{}) (interface{}, error)
ConvertTo tries to convert an object to a dedicated type The type may be given by either a pointer to a prototype of the desired type or the final type object. If no pointer type is is desired the prototype might be of the desired type or a pointer to an object of this type Examples:
- reflect.Type("string") -> string
- "string" -> string
- (*string)(nil) -> string
- (**string)(nil) -> *string
func Float32Type ¶
func Float64Type ¶
func StringType ¶
func UInt16Type ¶
func UInt32Type ¶
func UInt64Type ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.