package
0.0.0-20241210054802-24370beab758
Repository: https://github.com/kubernetes/utils.git
Documentation: pkg.go.dev
# Packages
Package slices defines various functions useful with slices of string type.
# Functions
EscapeQualifiedName converts a plugin name, which might contain a / into a string that is safe to use on-disk.
JoinQualifiedName joins 'namespace' and 'name' and returns a fully qualified name Assumes that the input is valid.
NewLineDelimiter allocates a new io.Writer that will split input on lines and bracket each line with the delimiter string.
ShortenString returns the first N slice of a string.
SplitQualifiedName Splits a fully qualified name and returns its namespace and name.
UnescapeQualifiedName converts an escaped plugin name (as per EscapeQualifiedName) back to its normal form.
# Structs
LineDelimiter is a filter that will split input on lines and bracket each line with the delimiter string.