diff options
author | Wim <wim@42.be> | 2018-08-06 21:47:05 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-08-06 21:47:05 +0200 |
commit | 51062863a5c34d81e296cf15c61140911037cf3b (patch) | |
tree | 9b5e044672486326c7a0ca8fb26430f37bf4d83c /vendor/github.com/labstack/gommon/bytes/README.md | |
parent | 4fb4b7aa6c02a54db8ad8dd98e4d321396926c0d (diff) | |
download | matterbridge-msglm-51062863a5c34d81e296cf15c61140911037cf3b.tar.gz matterbridge-msglm-51062863a5c34d81e296cf15c61140911037cf3b.tar.bz2 matterbridge-msglm-51062863a5c34d81e296cf15c61140911037cf3b.zip |
Use mod vendor for vendored directory (backwards compatible)
Diffstat (limited to 'vendor/github.com/labstack/gommon/bytes/README.md')
-rw-r--r-- | vendor/github.com/labstack/gommon/bytes/README.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/github.com/labstack/gommon/bytes/README.md b/vendor/github.com/labstack/gommon/bytes/README.md new file mode 100644 index 00000000..6e3b0fd3 --- /dev/null +++ b/vendor/github.com/labstack/gommon/bytes/README.md @@ -0,0 +1,29 @@ +# Bytes + +- Format bytes integer to human readable bytes string. +- Parse human readable bytes string to bytes integer. + +## Installation + +```go +go get github.com/labstack/gommon/bytes +``` + +## [Usage](https://github.com/labstack/gommon/blob/master/bytes/bytes_test.go) + +### Format + +```go +println(bytes.Format(13231323)) +``` + +`12.62MB` + +### Parse + +```go +b, _ = Parse("2M") +println(b) +``` + +`2097152` |