Help us shape the future of Go! Take the 2026 Go Developer Survey

gokit

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBinUnit

func ConvertBinUnit(val float64, base, to string) float64

ConvertBinUnit converts a value from a binary unit to another: b, kb, mb, gb, tb, pb or eb (powers of 1024). An unknown unit is considered as bytes.

func Min

func Min(a, b int) int

func Round

func Round(n float64, precision int) (r float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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