Documentation ¶
Overview ¶
Package byteconv converts sql.RawBytes for MySQL or MariaDB to primitive types.
It supports the null types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UseStdLib = false
UseStdLib set to true to use the standard library strconv functions. They are much slower and only ParseFloat has more precision.
Functions ¶
func ParseBool ¶
ParseBool same as strconv.ParseBool but faster and no allocations. Use err == nil to check if a bool value is valid.
func ParseFloat ¶
Float parses a byte-slice and returns the float it represents. If an invalid character is encountered, it will stop there.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.