Skip to content

Package bytesize provides functionality for measuring and displaying byte sizes.

License

Notifications You must be signed in to change notification settings

MalteJ/go-bytesize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ByteSize

This is a fork of https://github.com/inhies/go-bytesize This ByteSize fork uses an uint64 instead of a float64 for storing the byte sizes. As bytes are always natural numbers an integer representation is desirable. You do not have to deal with floating point inaccuracy. The disadvantage is that you are limited to sizes up to 2^64. So this fork does not support ZB and YB sizes. The biggest supported size is 18.4EB.

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.

GoDoc Build Status Coverage Status

Usage

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

About

Package bytesize provides functionality for measuring and displaying byte sizes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%