utils

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProgressBar

func CreateProgressBar(length, maxRunes int, chapterNum string) *progressbar.ProgressBar

func CreateSigIntHandler

func CreateSigIntHandler(f func())

func ExpandHomePath

func ExpandHomePath(path string) string

func ExtractDate

func ExtractDate(dirtyDate string) string

func FindInSlice

func FindInSlice(list interface{}, match interface{}) (interface{}, bool)

func FindInSliceFold

func FindInSliceFold(list []string, match string) (string, bool)

func IsRunningInContainer

func IsRunningInContainer() bool

func IsValidUUID added in v2.5.0

func IsValidUUID(u string) bool

func MergeSlices added in v2.4.0

func MergeSlices[K comparable](slices ...[]K) []K

MergeSlices merges multiple slices and removes duplicates.

func PadString

func PadString(s string, length int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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