zfmt

package
v0.0.0-...-1ece53b Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package zfmt implements additional formatting functions.

Index

Constants

This section is empty.

Variables

This section is empty.

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 '.'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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