utils

package
v0.0.0-...-117ffbb Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(collection []string, value string) bool

func Exists

func Exists(fs billy.Filesystem, filepath string) (bool, error)

func FillTemplate

func FillTemplate(src *string, data map[string]any)

func FillTemplatesArray

func FillTemplatesArray(src []string, data map[string]any)

func FillTemplatesMap

func FillTemplatesMap(src map[string]string, data map[string]any)

func Filter

func Filter(slice []string, predicate func(string) bool) []string

func FirstNotEmpty

func FirstNotEmpty(values ...string) string

func IsEmpty

func IsEmpty(value string) bool

func MatchToGlobs

func MatchToGlobs(patterns []string, file string) (matched bool, err error)

func Max

func Max(values ...int) int

func Min

func Min(values ...int) int

func PanicInterceptor

func PanicInterceptor(action func(any))

func PrintGraphics

func PrintGraphics(wr io.Writer, content string, data map[string]any)

func StringMapToInterfaceMap

func StringMapToInterfaceMap(src map[string]string) map[string]any

Types

This section is empty.

Jump to

Keyboard shortcuts

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