Discover Packages
github.com/CORESTOREIO/CSFW
util
byteconv
package
Version:
v0.0.0-...-202847b
Opens a new window with list of versions in this module.
Published: Jan 1, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package byteconv converts sql.RawBytes for MySQL or MariaDB to primitive types.
It supports the null types.
Variables
func LenInt(i int64) int
func ParseBool(b []byte) (v bool, ok bool, err error)
func ParseFloat(b []byte) (v float64, ok bool, err error)
func ParseInt(b []byte) (v int64, ok bool, err error)
func ParseUint(s []byte, base int, bitSize int) (n uint64, ok bool, err error)
UseStdLib set to true to use the standard library strconv functions. They are
much slower and only ParseFloat has more precision.
ParseBool same as strconv.ParseBool but faster and no allocations.
Use err == nil to check if a bool value is valid.
Float parses a byte-slice and returns the float it represents.
If an invalid character is encountered, it will stop there.
ParseInt parses a byte-slice and returns the integer it represents. If an
invalid character is encountered, it returns a syntax error.
ParseUint is like strconv.ParseUint, but using a []byte.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.