diff options
author | Lauris BH <lauris@nix.lv> | 2020-02-03 21:50:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 21:50:37 +0200 |
commit | 20c513be6e376231a33f01625f5ae747d2051241 (patch) | |
tree | e44d44973999a7acede7fc3e6a29306064b5df18 /vendor/github.com/dustin/go-humanize/humanize.go | |
parent | ea50f60df231ba75c32d03118e0c8af17c325324 (diff) | |
download | gitea-20c513be6e376231a33f01625f5ae747d2051241.tar.gz gitea-20c513be6e376231a33f01625f5ae747d2051241.zip |
Show download count info in release list (#10124)
* Show download count info in release list
* Use go-humanize
Diffstat (limited to 'vendor/github.com/dustin/go-humanize/humanize.go')
-rw-r--r-- | vendor/github.com/dustin/go-humanize/humanize.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/dustin/go-humanize/humanize.go b/vendor/github.com/dustin/go-humanize/humanize.go new file mode 100644 index 0000000000..a2c2da31ef --- /dev/null +++ b/vendor/github.com/dustin/go-humanize/humanize.go @@ -0,0 +1,8 @@ +/* +Package humanize converts boring ugly numbers to human-friendly strings and back. + +Durations can be turned into strings such as "3 days ago", numbers +representing sizes like 82854982 into useful strings like, "83 MB" or +"79 MiB" (whichever you prefer). +*/ +package humanize |