1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-24 10:23:41 +02:00

Improved code documentation.

This commit is contained in:
Henrik Hautakoski 2023-08-22 16:22:03 +02:00
parent 96764ef651
commit 31c7ba6a4b
6 changed files with 45 additions and 9 deletions

View file

@ -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 {