util

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToBits

func BytesToBits(b float64) float64

func BytesToGibiBytes

func BytesToGibiBytes(b uint64) uint64

func BytesToMebiBytes

func BytesToMebiBytes(b float64) float64

func BytesToMegaBytes

func BytesToMegaBytes(b float64) float64

func KibiBytesToMebiBytes added in v0.2.2

func KibiBytesToMebiBytes(b uint64) uint64

func RoundTwoDecimals

func RoundTwoDecimals(n float64) float64

Types

type IndexedValue added in v0.2.2

type IndexedValue[T any] struct {
	Index int
	Value T
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL