bytecount

package
v0.0.0-...-d931726 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package bytecount provides functionalities to format byte counts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(bc uint64) string

Format returns a human readable string from the passed byte count.

Example:

size := uint64(3371549327)
hSize := bytecount.Format(size)
fmt.Println(hSize)
// -> "3.140 GiB"

Types

This section is empty.

Jump to

Keyboard shortcuts

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