Documentation ¶
Index ¶
- func ToByteVector(value string) ([]byte, error)
- func ToExponent(value string) (int32, error)
- func ToInt32(value string) (int32, error)
- func ToInt64(value string) (int64, error)
- func ToMantissa(value string) (int64, error)
- func ToString(value string) (interface{}, error)
- func ToUInt32(value string) (uint32, error)
- func ToUInt64(value string) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToByteVector ¶
ToByteVector converts the strring to an array of bytes. The string must be an even amount of hexadecimal characters. This is converted to a byte vector by stripping all whitespace and treating each pair of characters as a single byte hex number.
func ToExponent ¶
ToExponent converts the value specified to a normalized decimal (mantissa x10 ^ exponent) where the mantissa % 10 != 0. The function then returns the exponent part of the decimal only.
func ToInt32 ¶
ToInt32 converts the string to an int32 type, returning an error if the conversion fails
func ToInt64 ¶
ToInt64 converts the string to an int64 type, returning an error if the conversion fails
func ToMantissa ¶
ToMantissa converts the value specified to a normalized decimal (mantissa x10 ^ exponent) where the mantissa % 10 != 0. The function then returns the mantissa part of the decimal only.
Types ¶
This section is empty.