Registry / utility / c2h5oh-datasize

c2h5oh-datasize

JSON →
library0.0.0-20231215233829-aa82cc1e6500gogounverified

Package datasize provides types and functions for representing and converting data sizes (e.g., bytes, kilobytes).

go get github.com/c2h5oh/datasize
INSTALL
IMPORT
SIG · C2H5OH-DATASIZE
C
c2h5oh-datasize
utilitygov0.0.0-20231215233829-aa82cc1e6500
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

datasize
github.com/c2h5oh/datasize

Parses a human-readable data size string

package main import ( "fmt" "github.com/c2h5oh/datasize" ) func main() { var size datasize.ByteSize size.UnmarshalText([]byte("10 MB")) fmt.Println(size.Bytes()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20231215233829-aa82cc1e6500latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
c2h5oh-datasize — go get c2h5oh-datasize · libregistry