Documentation
¶
Index ¶
- Variables
- func AvgDuration(durations ...time.Duration) time.Duration
- func Colored(color string, a ...any) string
- func Contains[T comparable](slice []T, item T) bool
- func Flatten[T any](nested [][]T) []T
- func MaxDuration(durations ...time.Duration) time.Duration
- func MinDuration(durations ...time.Duration) time.Duration
- func PrintAndExit(message string)
- func PrintErr(err error)
- func PrintErrAndExit(err error)
- func PrintfC(color string, format string, a ...any)
- func PrintlnC(color string, a ...any)
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = struct { reset string Red string Green string Yellow string Orange string Blue string Magenta string Cyan string Gray string White string }{ Red: "\033[31m", Green: "\033[32m", Yellow: "\033[33m", Orange: "\033[38;5;208m", Blue: "\033[34m", Magenta: "\033[35m", Cyan: "\033[36m", Gray: "\033[37m", White: "\033[97m", // contains filtered or unexported fields }
Functions ¶
func Contains ¶
func Contains[T comparable](slice []T, item T) bool
func PrintAndExit ¶
func PrintAndExit(message string)
func PrintErrAndExit ¶
func PrintErrAndExit(err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.