Categorygithub.com/inhies/go-bytesize
modulepackage
0.0.0-20220417184213-4913239db9cf
Repository: https://github.com/inhies/go-bytesize.git
Documentation: pkg.go.dev

# README

ByteSize

Bytesize is a package for working with measurements of bytes. Using this package allows you to easily add 100KB to 4928MB and get a nicely formatted string representation of the result.

Go Reference Build Status Coverage Status

Usage

Check the built in documentation for examples using the godoc link above or by running godoc locally.

# Functions

New returns a new ByteSize type set to s.
Parse parses a byte size string.

# Constants

Byte size size suffixes.
Byte size size suffixes.
Byte size size suffixes.
Byte size size suffixes.
Byte size size suffixes.
Byte size size suffixes.
Byte size size suffixes.

# Variables

String format of bytesize output.
Use long units, such as "megabytes" instead of "MB".

# Type aliases

ByteSize represents a number of bytes.