units

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package units provides helper functions to perform conversions between various units of measurement.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIEC

func ByteCountIEC(b int64) string

ByteCountIEC converts a size in bytes to a human-readable string in IEC (binary) format. https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/ https://creativecommons.org/licenses/by/3.0/

func ByteCountSI

func ByteCountSI(b int64) string

ByteCountSI converts a size in bytes to a human-readable string in SI (decimal) format. https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/ https://creativecommons.org/licenses/by/3.0/

Types

This section is empty.

Jump to

Keyboard shortcuts

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