Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
/ size Public archive
forked from mattrobenolt/size

A package for working with byte capacities similar to time.Duration

License

Notifications You must be signed in to change notification settings

getsentry/size

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

size

image

image

size is a package for working with byte capacities similar to time.Duration.

Usage

// Returns a Capacity which is a uint64 representing
// 5 gigabytes in bytes.
5*size.Gigabyte

// Turn the string "5G" into a Capacity
// Useful for parsing from flags.
size.ParseCapacity("5G")

Installation

$ go get github.com/mattrobenolt/size

Resources

About

A package for working with byte capacities similar to time.Duration

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%