mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-24 10:23:41 +02:00
Improved code documentation.
This commit is contained in:
parent
96764ef651
commit
31c7ba6a4b
6 changed files with 45 additions and 9 deletions
|
|
@ -6,9 +6,10 @@ import (
|
|||
)
|
||||
|
||||
// Size is an alias of int64 that can handle sizes represented
|
||||
// in human readable strings like "200mb", "20 GB" etc
|
||||
// in human readable strings like "200mb", "20 GB" etc.
|
||||
|
||||
type Size int64 // Size in bytes.
|
||||
// The value is in bytes.
|
||||
type Size int64
|
||||
|
||||
// Parse a string into number of bytes stored in a int64
|
||||
func (s *Size) Parse(value string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue