Skip to content

mdouchement/hr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Human Readable

Simple binary aimed to humanize the sizes

Usage

$ echo 5436537 | hr
5.4M

Installation with Golang

go get github.com/mdouchement/hr

Compilation (cross-compilation)

  • On your current OS
go build hr.go

According to Golang system list

  • GNU/Linux
GOOS=linux GOARCH=amd64 go build -o hr-Linux-x86_64 hr.go
  • Mac OSX (darwin)
GOOS=darwin GOARCH=amd64 go build -o hr-Darwin-x86_64 hr.go
  • MS Windows
GOOS=windows GOARCH=amd64 go build -o hr-Windows-x86_64.exe hr.go

License

MIT

Contributing

  1. Fork it ( https://github.com/mdouchement/hr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Simple binary aimed to humanize the sizes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages