Documentation ¶
Index ¶
- func AutoDiscoverYML(path string) ([]string, error)
- func Base64Encode(s string) string
- func BytesContainsString(b []byte, s string) bool
- func BytesToLowerCase(b []byte) []byte
- func EnvToMap() map[string]string
- func EqualSlices[T comparable](a, b []T) bool
- func ExtractFileNameWithoutExtension(path string) string
- func HTMLStripTags(s string) string
- func Include(slice []string, str string) bool
- func ParseDuration(s string) (time.Duration, error)
- func PrintTable(table [][]string)
- func SetLogLevelFromStr(level string)
- func TakeScreenshotWithChromedp(url, file string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoDiscoverYML ¶
AutoDiscoverYML find yaml in given path
func BytesContainsString ¶
BytesContainsString checks if a byte slice contains a string
func BytesToLowerCase ¶
BytesToLowerCase converts all bytes in a byte slice to lowercase
func EqualSlices ¶
func EqualSlices[T comparable](a, b []T) bool
EqualSlices checks if two slices are equal
func ExtractFileNameWithoutExtension ¶
ExtractFileNameWithoutExtension extracts the file name without extension
func HTMLStripTags ¶
HTMLStripTags removes all HTML tags from a string
func ParseDuration ¶
ParseDuration parses a duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h", "d", "w".
func SetLogLevelFromStr ¶
func SetLogLevelFromStr(level string)
SetLogLevelFromStr sets the log level from a string
func TakeScreenshotWithChromedp ¶
TakeScreenshotWithChromedp takes a screenshot of the current browser window.
Types ¶
This section is empty.