utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIsaDirectory = errors.New("the path to the file points to a directory")

Functions

func ClampInts

func ClampInts(v, min, max int) int

func DoesFileExist added in v0.2.0

func DoesFileExist(fileName string) (bool, error)

function to check if file exists

func GetInteractiveBooleanPrompt added in v0.2.0

func GetInteractiveBooleanPrompt(yesNoQuestion string) (*promptui.Prompt, error)

func RandomString

func RandomString(n int) string

return a random string of length n

Types

This section is empty.

Jump to

Keyboard shortcuts

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