Documentation
¶
Index ¶
- func CleanString(s string) string
- func ClickOption(options []string, separator string, cx int, offset int) (int, string)
- func DeleteExtraSpace(s string) string
- func FileExited(path string) bool
- func FilePath(path string) string
- func GetKey(key interface{}) string
- func Home() (string, error)
- func HomeUnix() (string, error)
- func HomeWindows() (string, error)
- func IsDirector(path string) bool
- func LabelsToStringArr(labelsMapString string) []string
- func MaxFloat64(arr []float64) float64
- func MinFloat64(arr []float64) float64
- func NormalizeLinefeeds(str string) string
- func OptionsMapToString(optionsMap map[string]string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanString ¶
func ClickOption ¶ added in v0.4.0
func DeleteExtraSpace ¶
func Home ¶ added in v0.8.0
Home returns the home directory for the executing user.
This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected.
func HomeWindows ¶ added in v0.8.0
func LabelsToStringArr ¶
Convert labels which like '{"k8s-app":"kube-dns"}' to '[]string{"k8s-app=kube-dns"}'.
func MaxFloat64 ¶
func MinFloat64 ¶
func NormalizeLinefeeds ¶
NormalizeLinefeeds - Removes all Windows and Mac style line feeds
func OptionsMapToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.