strconvlen

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

README

strconvlen

Golang strconv accessory package

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) int

Bool returns the same result as len(strconv.FormatBool(b)).

func Int

func Int(n, base int) int

Int is the same as Int64 or Int32, depending on CPU architecture.

func Int16

func Int16(n int16, base int) int

Int16 returns the same result as len(strconv.FormatInt(int64(n), base)).

func Int32

func Int32(n int32, base int) int

Int32 returns the same result as len(strconv.FormatInt(int64(n), base)).

func Int64

func Int64(n int64, base int) int

Int64 returns the same result as len(strconv.FormatInt(n, base)).

func Int8

func Int8(n int8, base int) int

Int8 returns the same result as len(strconv.FormatInt(int64(n), base)).

func Uint

func Uint(n uint, base int) int

Uint is the same as Uint64 or Uint32, depending on CPU architecture.

func Uint16

func Uint16(n uint16, base int) int

Uint16 returns the same result as len(strconv.FormatUint(uint64(n), base)).

func Uint32

func Uint32(n uint32, base int) int

Uint32 returns the same result as len(strconv.FormatUint(uint64(n), base)).

func Uint64

func Uint64(n uint64, base int) int

Uint64 returns the same result as len(strconv.FormatUint(n, base)).

func Uint8

func Uint8(n byte, base int) int

Uint8 returns the same result as len(strconv.FormatUint(uint64(n), base)).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL