Discover Packages
github.com/imacks/strconvlen
package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Dec 23, 2023
License: GPL-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
README
Documentation
Overview
Index
Constants
Variables
Functions
Bool(b)
Int(n, base)
Int16(n, base)
Int32(n, base)
Int64(n, base)
Int8(n, base)
Uint(n, base)
Uint16(n, base)
Uint32(n, base)
Uint64(n, base)
Uint8(n, base)
Types
Source Files
README
README
¶
strconvlen
Golang strconv accessory package
Expand ▾
Collapse ▴
Documentation
¶
Package strconvlen is an accessory package to the standard library strconv
package. It calculates the length of of the string representations of basic
data types.
func Bool(b bool) int
func Int(n, base int) int
func Int16(n int16, base int) int
func Int32(n int32, base int) int
func Int64(n int64, base int) int
func Int8(n int8, base int) int
func Uint(n uint, base int) int
func Uint16(n uint16, base int) int
func Uint32(n uint32, base int) int
func Uint64(n uint64, base int) int
func Uint8(n byte, base int) int
Bool returns the same result as len(strconv.FormatBool(b)).
Int is the same as Int64 or Int32, depending on CPU architecture.
Int16 returns the same result as len(strconv.FormatInt(int64(n), base)).
Int32 returns the same result as len(strconv.FormatInt(int64(n), base)).
Int64 returns the same result as len(strconv.FormatInt(n, base)).
Int8 returns the same result as len(strconv.FormatInt(int64(n), base)).
Uint is the same as Uint64 or Uint32, depending on CPU architecture.
Uint16 returns the same result as len(strconv.FormatUint(uint64(n), base)).
Uint32 returns the same result as len(strconv.FormatUint(uint64(n), base)).
Uint64 returns the same result as len(strconv.FormatUint(n, base)).
Uint8 returns the same result as len(strconv.FormatUint(uint64(n), base)).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.