format

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package format provides shared constants for number and unit formatting.

Index

Constants

View Source
const (
	// SIThreshold is the boundary between raw and abbreviated SI display (1000).
	SIThreshold = 1000

	// SIThresholdM is the boundary between K and M display (1,000,000).
	SIThresholdM = 1_000_000

	// IECUnit is the binary unit base for byte formatting (1024).
	IECUnit = 1024

	// HashPrefixLen is the number of bytes used for truncated hex hashes.
	HashPrefixLen = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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