utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CascadeErrorMessage

func CascadeErrorMessage(err1, err2 error) error

func Ellipsize added in v1.4.0

func Ellipsize(from, to int, str string) string

func EscapeForShell

func EscapeForShell(unsafeString string) string

func LevenshteinDistance added in v1.3.0

func LevenshteinDistance(str1, str2 string) int

So, there are other more effective solutions. But I get this one, because I've made it.

func PrettyPrintStringsForShell

func PrettyPrintStringsForShell(args [][]string) string

func TokenizeLine

func TokenizeLine(commandLine string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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