humanize

package
v0.1.66 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package humanize converts raw machine values into human-presentable strings — comma-grouped integers today; the same category of helper as byte-size ("4.2 MB"), relative-time ("3 days ago"), or ordinal ("1st") formatting belongs here too as those needs come up (see dustin/go-humanize for the shape of a mature version of this idea). It has no boxy-specific coupling and is safe to use from any consumer, in-repo or not. Scope discipline: this package formats values for *display*; it does not parse human input back into machine values, and it is not a general string- utilities dumping ground — a helper that doesn't fit "raw value -> human string" belongs elsewhere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommaInt

func CommaInt(value int64) string

CommaInt formats value with thousands separators, e.g. 4096 -> "4,096" and -1234567 -> "-1,234,567".

Types

This section is empty.

Jump to

Keyboard shortcuts

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