Documentation
¶
Index ¶
- func ConvertBool(str string) (bool, error)
- func ConvertFloat32(str string) (float32, error)
- func ConvertFloat64(str string) (float64, error)
- func ConvertInt8(str string) (int8, error)
- func ConvertInt16(str string) (int16, error)
- func ConvertInt32(str string) (int32, error)
- func ConvertInt64(str string) (int64, error)
- func ConvertMBToBytes(mb int) int
- func ConvertUint(str string) (uint, error)
- func ConvertUint8(str string) (uint8, error)
- func ConvertUint16(str string) (uint16, error)
- func ConvertUint32(str string) (uint32, error)
- func ConvertUint64(str string) (uint64, error)
- func FormatBool(value bool) string
- func FormatFloat32(value float32) string
- func FormatFloat64(value float64) string
- func FormatInt8(value int8) string
- func FormatInt16(value int16) string
- func FormatInt32(value int32) string
- func FormatInt64(value int64) string
- func FormatUint8(value uint8) string
- func FormatUint16(value uint16) string
- func FormatUint32(value uint32) string
- func FormatUint64(value uint64) string
- func IsFloat64AJSONInteger(f float64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBool ¶
ConvertBool turn a string into a boolean
func ConvertFloat32 ¶
ConvertFloat32 turn a string into a float32
func ConvertFloat64 ¶
ConvertFloat64 turn a string into a float64
func ConvertInt8 ¶
ConvertInt8 turn a string into an int8
func ConvertInt16 ¶
ConvertInt16 turn a string into an int16
func ConvertInt32 ¶
ConvertInt32 turn a string into an int32
func ConvertInt64 ¶
ConvertInt64 turn a string into an int64
func ConvertMBToBytes ¶
func ConvertUint ¶
ConvertUint turn a string into an uint
func ConvertUint8 ¶
ConvertUint8 turn a string into an uint8
func ConvertUint16 ¶
ConvertUint16 turn a string into an uint16
func ConvertUint32 ¶
ConvertUint32 turn a string into an uint32
func ConvertUint64 ¶
ConvertUint64 turn a string into an uint64
func FormatFloat32 ¶
FormatFloat32 turns a float32 into a string
func FormatFloat64 ¶
FormatFloat64 turns a float64 into a string
func FormatUint16 ¶
FormatUint16 turns an uint16 into a string
func FormatUint32 ¶
FormatUint32 turns an uint32 into a string
func FormatUint64 ¶
FormatUint64 turns an uint64 into a string
func IsFloat64AJSONInteger ¶
IsFloat64AJSONInteger allow for integers [-2^53, 2^53-1] inclusive
Types ¶
This section is empty.