bytes

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package bytes is a helper to convert bytes to a human readable string

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. Copied from: https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/ https://creativecommons.org/licenses/by/3.0/ IEC format: https://www.iec.ch/prefixes-binary-multiples

Types

This section is empty.

Jump to

Keyboard shortcuts

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