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-20240930202209-a63c3335042a (latest)
Published
Sep 30, 2024
Platform
linux/amd64
Imports
6 packages
Last checked
2 days ago

Tools for package owners.