utils

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 8 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 ExtractDate

func ExtractDate(dirtyDate string) string

func FindInSlice

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

func FindInSliceFold added in v1.1.0

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

func IsRunningInContainer

func IsRunningInContainer() bool

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