utils

package
v0.0.8-beta Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Red        = color.New(color.FgRed)
	Blue       = color.New(color.FgBlue)
	Yellow     = color.New(color.FgYellow)
	BoldRed    = color.New(color.FgRed).Add(color.Bold)
	BoldBlue   = color.New(color.FgBlue).Add(color.Bold)
	BoldGreen  = color.New(color.FgGreen).Add(color.Bold)
	BoldYellow = color.New(color.FgYellow).Add(color.Bold)
)

Functions

func CaclChecksum

func CaclChecksum(data []byte, base uint) uint

func EnableSmartPipe

func EnableSmartPipe()

func IsFilePiped

func IsFilePiped(f *os.File) bool

func PrintFatal

func PrintFatal(format string, a ...any)

func PrintStatus

func PrintStatus(format string, a ...any)

func RandomString

func RandomString(n int) string

func WaitForExitSignal

func WaitForExitSignal(sig os.Signal)

Types

This section is empty.

Jump to

Keyboard shortcuts

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