helper

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const ProtocolHttps = "https"
View Source
const True = "true"

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, str string) bool

func DisplaySpinnerWithDelay added in v1.2.1

func DisplaySpinnerWithDelay(reporter *reporter.Object, infoMessage string, delay time.Duration)

func HandleEmptyStringOnSlice added in v1.2.9

func HandleEmptyStringOnSlice(slice []string) []string

func HandleEscapedEmptyString added in v1.2.9

func HandleEscapedEmptyString(input string) string

func IsURLReachable added in v1.2.13

func IsURLReachable(apiURL string) error

func IsValidUUID added in v1.2.7

func IsValidUUID(u string) bool

func LongestCommonPrefixBySorting added in v1.2.11

func LongestCommonPrefixBySorting(stringSlice []string) string

func MapKeysToString added in v1.2.9

func MapKeysToString(m map[string]bool) string

func RandomLabel added in v1.2.9

func RandomLabel(size int) string

func RankMapStringInt added in v1.2.9

func RankMapStringInt(values map[string]int) []string

func RemoveStrFromSlice

func RemoveStrFromSlice(s []string, str string) []string

RemoveStrFromSlice removes one occurrence of 'str' from the 's' slice if exists.

func SaveDocument added in v1.2.3

func SaveDocument(doc, filename string) error

func SliceToMap

func SliceToMap(s []string) map[string]bool

func SliceToSortedString added in v1.2.11

func SliceToSortedString(s []string) string

func SortStringRespectLength added in v1.2.11

func SortStringRespectLength(s []string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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