Documentation ¶
Index ¶
- func BytesForHumanString(b uint64) string
- func DeleteSpaces(str string) string
- func ExpandPath(path string) string
- func FuzzySearch(str string, strList []string, threshold float32) (string, error)
- func HomeDir() string
- func IsRunningInContainer() bool
- func IsRunningInDocker() bool
- func IsRunningInK8s() bool
- func IsStringInFile(s, path string) bool
- func IsStringInSlice(a string, list []string) bool
- func NewReadCloser(r io.Reader, closure func() error) io.ReadCloser
- func RemoveScheme(s string) string
- func SortStringsCaseInsensitive(data []string)
- type NopStringWriteCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesForHumanString ¶ added in v1.3.1
func ExpandPath ¶ added in v0.9.23
Expands tilde and all environment variables from the given path.
func FuzzySearch ¶
func IsRunningInContainer ¶
func IsRunningInContainer() bool
func IsRunningInDocker ¶
func IsRunningInDocker() bool
func IsRunningInK8s ¶
func IsRunningInK8s() bool
func IsStringInFile ¶
func IsStringInSlice ¶
func NewReadCloser ¶
func NewReadCloser(r io.Reader, closure func() error) io.ReadCloser
func RemoveScheme ¶
func SortStringsCaseInsensitive ¶ added in v0.9.23
func SortStringsCaseInsensitive(data []string)
Types ¶
type NopStringWriteCloser ¶
func (NopStringWriteCloser) Close ¶
func (NopStringWriteCloser) Close() error
Click to show internal directories.
Click to hide internal directories.