format

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float

func Float(f float64, prec int) string

Float formats a floating-point number with a period as the decimal symbol and a comma as the numeric thousands grouping symbol.

func FloatWith

func FloatWith(f float64, prec int, decimalSymbol, groupSymbol byte) string

FloatWith formats a floating-point number with the specified decimalSymbol, e.g., '.', and the specified numeric thousands groupSymbol, e.g., ','.

func Int

func Int(i int) string

Int formats an integer with a comma as the numeric thousands grouping symbol.

func Int64

func Int64(i int64) string

Int64 formats a 64-bit integer with a comma as the numeric thousands grouping symbol.

func Int64With

func Int64With(i int64, groupSymbol byte) string

Int64With formats a 64-bit integer with specified numeric thousands groupSymbol, e.g., ','.

func IntWith

func IntWith(i int, groupSymbol byte) string

IntWith formats an integer with specified numeric thousands groupSymbol, e.g., ','.

func UInt

func UInt(i uint) string

UInt formats an unsigned-integer with a comma as the numeric thousands grouping symbol.

func UInt64

func UInt64(i uint64) string

UInt64 formats a 64-bit unsigned-integer with a comma as the numeric thousands grouping symbol.

func UInt64With

func UInt64With(i uint64, groupSymbol byte) string

UInt64With formats a 64-bit unsigned-integer with specified numeric thousands groupSymbol, e.g., ','.

func UIntWith

func UIntWith(i uint, groupSymbol byte) string

UIntWith formats an unsigned-integer with specified numeric thousands groupSymbol, e.g., ','.

Types

This section is empty.

Jump to

Keyboard shortcuts

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