Documentation
¶
Index ¶
- func Bytes[T AnyInteger](amount uint64) T
- func BytesAs[T AnyInteger](amount uint64, unit Size) T
- func Exabytes[T AnyInteger](amount uint64) T
- func ExabytesAs[T AnyInteger](amount uint64, unit Size) T
- func Gigabytes[T AnyInteger](amount uint64) T
- func GigabytesAs[T AnyInteger](amount uint64, unit Size) T
- func Kilobytes[T AnyInteger](amount uint64) T
- func KilobytesAs[T AnyInteger](amount uint64, unit Size) T
- func Megabytes[T AnyInteger](amount uint64) T
- func MegabytesAs[T AnyInteger](amount uint64, unit Size) T
- func Petabytes[T AnyInteger](amount uint64) T
- func PetabytesAs[T AnyInteger](amount uint64, unit Size) T
- func Terabytes[T AnyInteger](amount uint64) T
- func TerabytesAs[T AnyInteger](amount uint64, unit Size) T
- type AnyInteger
- type Size
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesAs ¶ added in v0.2.0
func BytesAs[T AnyInteger](amount uint64, unit Size) T
BytesAs returns the size in bytes as the specified type.
func ExabytesAs ¶ added in v0.2.0
func ExabytesAs[T AnyInteger](amount uint64, unit Size) T
ExabytesAs returns the size in exabytes as the specified type.
func Gigabytes ¶
func Gigabytes[T AnyInteger](amount uint64) T
Gigabytes returns the size in gigabytes.
func GigabytesAs ¶ added in v0.2.0
func GigabytesAs[T AnyInteger](amount uint64, unit Size) T
GigabytesAs returns the size in gigabytes as the specified type.
func Kilobytes ¶
func Kilobytes[T AnyInteger](amount uint64) T
Kilobytes returns the size in kilobytes.
func KilobytesAs ¶ added in v0.2.0
func KilobytesAs[T AnyInteger](amount uint64, unit Size) T
KilobytesAs returns the size in kilobytes as the specified type.
func Megabytes ¶
func Megabytes[T AnyInteger](amount uint64) T
Megabytes returns the size in megabytes.
func MegabytesAs ¶ added in v0.2.0
func MegabytesAs[T AnyInteger](amount uint64, unit Size) T
MegabytesAs returns the size in megabytes as the specified type.
func Petabytes ¶
func Petabytes[T AnyInteger](amount uint64) T
Petabytes returns the size in petabytes.
func PetabytesAs ¶ added in v0.2.0
func PetabytesAs[T AnyInteger](amount uint64, unit Size) T
PetabytesAs returns the size in petabytes as the specified type.
func Terabytes ¶
func Terabytes[T AnyInteger](amount uint64) T
Terabytes returns the size in terabytes.
func TerabytesAs ¶ added in v0.2.0
func TerabytesAs[T AnyInteger](amount uint64, unit Size) T
TerabytesAs returns the size in terabytes as the specified type.