utils

package
v0.0.0-...-89235d8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 6 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 GetExecutablePath

func GetExecutablePath() (string, error)

func GetPDFPath

func GetPDFPath() (string, error)

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
JackTT - Gopher 🇻🇳