human

package
v0.179.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(b int64) string
Example (GigaByte)
fmt.Println(Bytes(3000000000))
Output:

3 GB
Example (KiloByte)
fmt.Println(Bytes(828549))
Output:

829 kB
Example (MegaByte)
fmt.Println(Bytes(82854982))
Output:

83 MB

Types

This section is empty.

Jump to

Keyboard shortcuts

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