utils

package
v0.0.0-...-4c03c20 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BYTE = 1 << (10 * iota)
	KILOBYTE
	MEGABYTE
	GIGABYTE
	TERABYTE
	PETABYTE
	EXABYTE
)

Variables

This section is empty.

Functions

func ByteCountSI

func ByteCountSI(b uint64) string

func ConvertBytes

func ConvertBytes(bytes int64, u float64) float64

func GetRoot

func GetRoot() (string, error)

func RandString

func RandString(length int) string

func StringWithCharset

func StringWithCharset(length int, charset string) string

Types

type Unit

type Unit float64

Jump to

Keyboard shortcuts

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