humanize

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package humanize da formato legible a números para mostrarlos en pantalla.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes added in v1.2.0

func Bytes(n int64) string

Bytes formatea un tamaño con la unidad más adecuada, en múltiplos de 1024 como el Explorador de Windows: 1536 -> "1.5 KB", 157286400 -> "150 MB".

func Count

func Count(n int64, one, many string) string

Count devuelve n junto al sustantivo en singular o plural: Count(1, "carpeta", "carpetas") -> "1 carpeta".

func Int

func Int(n int64) string

Int formatea un entero con separador de miles: 52341 -> "52,341".

Types

This section is empty.

Jump to

Keyboard shortcuts

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