util

package
v0.1.0-pre Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STRIKE_THROUGH_START = "\033[9m"
	STRIKE_THROUGH_END   = "\033[0m"
)

Variables

This section is empty.

Functions

func IsCancel

func IsCancel(err error) bool

func LPad

func LPad(str string, padding int) string

func Map

func Map[T any, V any](items *[]T, fn func(T, int) V) []V

func MapToSlice

func MapToSlice[K comparable, V any, T any](m *map[K]V, fn func(K, V) T) []T

func MinLength

func MinLength(strings *[]string) int

func PadLeftMin

func PadLeftMin(s string, min int) string

func PadRightMin

func PadRightMin(s string, min int) string

func StrikeThrough

func StrikeThrough(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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