/humanbytes-go

Make values represented in bytes more readable

Primary LanguageGoApache License 2.0Apache-2.0

humanize

Format byte sizes into more humanly readable values

This program was inspired by a post by Chris Siebenmann. I wondered if there was an equivalent (and easy) way to perform the functions of his Python script in Golang.

There is! This is one possible solution, using the regular expression function substitution he talks about.

Build

go build

Run

./humanbytes < test.txt