Documentation ¶
Index ¶
- func AutoDiscoverYML(path string) ([]string, error)
- func Base64Encode(s string) string
- func BytesContainsString(b []byte, s string) bool
- func BytesContainsStringTimes(b []byte, s string) int
- func BytesToLowerCase(b []byte) []byte
- func CamelCaseToSnakeCase(s string) string
- 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 IsHeadless() bool
- func Map2Hash(m map[string]string) string
- func ParseDuration(s string) (time.Duration, error)
- func PrintTable(table [][]string)
- func SetLogLevelFromStr(level string)
- func StringToInt(s string) int
- 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 BytesContainsStringTimes ¶ added in v3.2.0
BytesContainsStringXTimes checks if a byte slice contains a string x times
func BytesToLowerCase ¶
BytesToLowerCase converts all bytes in a byte slice to lowercase
func CamelCaseToSnakeCase ¶ added in v3.2.0
CamelCaseToSnakeCase converts a string from camel case to snake case
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 IsHeadless ¶ added in v3.1.0
func IsHeadless() bool
isHeadless returns true if user doesn't have a graphical environment
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 StringToInt ¶ added in v3.1.0
StringToInt converts a string to an int
func TakeScreenshotWithChromedp ¶
TakeScreenshotWithChromedp takes a screenshot of the current browser window.
Types ¶
This section is empty.