units

module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT

README

GoDoc

Introduction

units is a library to transform human friendly information size into machine friendly values.

Usage

See the docs in godoc for examples and documentation.

Installation

go get github.com/Diez37/units

benchmark

go test -bench=. -benchtime=10s -benchmem ./...
goos: linux
goarch: amd64
pkg: github.com/Diez37/units/size
cpu: 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz
BenchmarkParseSize-12    	  885320	     16118 ns/op	    4105 B/op	      63 allocs/op
PASS
ok  	github.com/Diez37/units/size	14.410s

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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