Documentation ¶
Index ¶
- Constants
- func ChunkSlice[T any](slice []T, chunkSize int) [][]T
- func Contains[T comparable](slice []T, element T) bool
- func ContainsPrefix(slice []string, prefix string) bool
- func DisplaySpinnerWithDelay(reporter *reporter.Object, infoMessage string, delay time.Duration)
- func GigybyteStringer(size int) string
- func HandleEmptyStringOnSlice(slice []string) []string
- func HandleEscapedEmptyString(input string) string
- func IsBYOVPC(cluster *cmv1.Cluster) bool
- func IsValidUUID(u string) bool
- func KeysByValue(m map[string]string, value string) []string
- func LongestCommonPrefixBySorting(stringSlice []string) string
- func MapKeys[K comparable, V any](m map[K]V) []K
- func MapKeysToString[T any](m map[string]T) string
- func RandomLabel(size int) string
- func RankMapStringInt(values map[string]int) []string
- func RemoveStrFromSlice(s []string, str string) []string
- func SaveDocument(doc, filename string) error
- func SliceToMap(s []string) map[string]bool
- func SliceToSortedString(s []string) string
- func SortStringRespectLength(s []string)
Constants ¶
View Source
const ProtocolHttps = "https"
View Source
const True = "true"
Variables ¶
This section is empty.
Functions ¶
func ChunkSlice ¶ added in v1.2.33
func Contains ¶
func Contains[T comparable](slice []T, element T) bool
func ContainsPrefix ¶ added in v1.2.29
func DisplaySpinnerWithDelay ¶ added in v1.2.1
func GigybyteStringer ¶ added in v1.2.26
func HandleEmptyStringOnSlice ¶ added in v1.2.9
func HandleEscapedEmptyString ¶ added in v1.2.9
func IsValidUUID ¶ added in v1.2.7
func LongestCommonPrefixBySorting ¶ added in v1.2.11
func MapKeys ¶ added in v1.2.26
func MapKeys[K comparable, V any](m map[K]V) []K
func MapKeysToString ¶ added in v1.2.9
func RandomLabel ¶ added in v1.2.9
func RankMapStringInt ¶ added in v1.2.9
func RemoveStrFromSlice ¶
RemoveStrFromSlice removes one occurrence of 'str' from the 's' slice if exists.
func SaveDocument ¶ added in v1.2.3
func SliceToMap ¶
func SliceToSortedString ¶ added in v1.2.11
func SortStringRespectLength ¶ added in v1.2.11
func SortStringRespectLength(s []string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.