zstdzgo.at/zstd/zfmt Index | Files

package zfmt

import "zgo.at/zstd/zfmt"

Package zfmt implements additional formatting functions.

Index

Functions

func Binary

func Binary(c any) string

Binary returns a nicely formatted binary representation of a number.

func Number

func Number[T number](n T, thousandsSep rune) string

Number returns a formatted representation of n, using thousandsSep to separate thousands.

If thousandsSep is '.' it will use ',' as the fraction separator, otherwise it will default to '.'.

Source Files

zfmt.go

Version
v0.0.0-20250313035723-1ece53b5d53e (latest)
Published
Mar 13, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
1 day ago

Tools for package owners.