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.
go build
./humanbytes < test.txt