Documentation ¶
Index ¶
- Constants
- func Convert(value int64, fromUnit int64, toUnit int64) int64
- func FromBytes(bytes int64, unit int64) int64
- func StrToBytes(s string) int64
- func StrToBytesOk(s string) (int64, bool)
- func StrToUnit(s string, targetUnit int64) int64
- func StrToUnitOk(s string, targetUnit int64) (int64, bool)
- func ToBytes(value int64, unit int64) int64
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func StrToBytes ¶
func StrToBytesOk ¶
StrToBytesOk converts your bytes string to bytes, for use with other convbytes pkg funcs
func StrToUnitOk ¶
StrToUnitOk converts a size string to a target unit and returns the converted value and a boolean indicating if the conversion was successful.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.