{"modulePath":"github.com/ssdev-go/moby","version":"v1.13.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stringutils\n\nPackage stringutils provides helper functions for dealing with strings.\n\n## Functions\n\n```go\nfunc Ellipsis(s string, maxlen int) string\n```\nEllipsis truncates a string to fit within maxlen, and appends ellipsis (...). For maxlen of 3 and lower, no ellipsis is appended.\n\n```go\nfunc GenerateRandomASCIIString(n int) string\n```\nGenerateRandomASCIIString generates an ASCII random string with length n.\n\n```go\nfunc GenerateRandomAlphaOnlyString(n int) string\n```\nGenerateRandomAlphaOnlyString generates an alphabetical random string with length n.\n\n```go\nfunc InSlice(slice []string, s string) bool\n```\nInSlice tests whether a string is contained in a slice of strings or not. Comparison is case insensitive\n\n```go\nfunc ShellQuoteArguments(args []string) string\n```\nShellQuoteArguments takes a list of strings and escapes them so they will be handled right when passed as arguments to a program via a shell\n\n```go\nfunc Truncate(s string, maxlen int) string\n```\nTruncate truncates a string to maxlen.\n\n","path":"github.com/ssdev-go/moby/pkg/stringutils","name":"stringutils","synopsis":"Package stringutils provides helper functions for dealing with strings.","isRedistributable":true}
