Documentation
¶
Index ¶
- func Closest[T constraints.Integer | constraints.Float](v T) string
- func ClosestByte[T constraints.Integer | constraints.Float](bytes T) string
- func ClosestByteWithPrecision[T constraints.Integer | constraints.Float](bytes T, precision int) string
- func ClosestKWithPrecision[T constraints.Integer | constraints.Float](v T, precision int) string
- func ToFixed(num float64, precision int) float64
- func ToGiga[T constraints.Integer | constraints.Float](bytes T) float64
- func ToGigaByte[T constraints.Integer | constraints.Float](bytes T) float64
- func ToKilo[T constraints.Integer | constraints.Float](bytes T) float64
- func ToKiloByte[T constraints.Integer | constraints.Float](bytes T) float64
- func ToMega[T constraints.Integer | constraints.Float](bytes T) float64
- func ToMegaByte[T constraints.Integer | constraints.Float](bytes T) float64
- type Byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Closest ¶ added in v0.1.42
func Closest[T constraints.Integer | constraints.Float](v T) string
func ClosestByte ¶ added in v0.1.36
func ClosestByte[T constraints.Integer | constraints.Float](bytes T) string
func ClosestByteWithPrecision ¶ added in v0.1.36
func ClosestByteWithPrecision[T constraints.Integer | constraints.Float](bytes T, precision int) string
func ClosestKWithPrecision ¶ added in v0.1.42
func ClosestKWithPrecision[T constraints.Integer | constraints.Float](v T, precision int) string
func ToGiga ¶
func ToGiga[T constraints.Integer | constraints.Float](bytes T) float64
func ToGigaByte ¶
func ToGigaByte[T constraints.Integer | constraints.Float](bytes T) float64
func ToKilo ¶
func ToKilo[T constraints.Integer | constraints.Float](bytes T) float64
func ToKiloByte ¶
func ToKiloByte[T constraints.Integer | constraints.Float](bytes T) float64
func ToMega ¶
func ToMega[T constraints.Integer | constraints.Float](bytes T) float64
func ToMegaByte ¶
func ToMegaByte[T constraints.Integer | constraints.Float](bytes T) float64
Types ¶
Click to show internal directories.
Click to hide internal directories.