package stringutils
import "github.com/docker/docker/pkg/stringutils"
Index ¶
- func GenerateRandomAlphaOnlyString(n int) string
- func GenerateRandomAsciiString(n int) string
- func InSlice(slice []string, s string) bool
- func ShellQuoteArguments(args []string) string
- func Truncate(s string, maxlen int) string
Functions ¶
func GenerateRandomAlphaOnlyString ¶
Generate alpha only random stirng with length n
func GenerateRandomAsciiString ¶
Generate Ascii random stirng with length n
func InSlice ¶
Test wheather a string is contained in a slice of strings or not. Comparison is case insensitive
func ShellQuoteArguments ¶
Take a list of strings and escape them so they will be handled right when passed as arguments to an program via a shell
func Truncate ¶
Truncate a string to maxlen
Source Files ¶
- Version
- v1.7.1
- Published
- Jul 14, 2015
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 40 minutes ago –
Tools for package owners.