Documentation ¶
Index ¶
- func DeleteSpaces(str string) string
- func FuzzySearch(str string, strList []string, threshold float32) (string, error)
- 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
- type NopStringWriteCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSpaces ¶
// https://stackoverflow.com/questions/7052693/how-to-get-the-name-of-a-function-in-go
func GetFunctionName(temp interface{}) string { strs := strings.Split((runtime.FuncForPC(reflect.ValueOf(temp).Pointer()).Name()), ".") return strs[len(strs)-1] }
https://stackoverflow.com/questions/32081808/strip-all-whitespace-from-a-string
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 ¶
Types ¶
type NopStringWriteCloser ¶
func (NopStringWriteCloser) Close ¶
func (NopStringWriteCloser) Close() error
Click to show internal directories.
Click to hide internal directories.