Documentation ¶
Overview ¶
Package utils represent utils for every package
Index ¶
- func AutoDiscoverYML(path string) ([]string, error)
- func EnvToMap() (map[string]string, error)
- func LogDebug(s string, v ...interface{})
- func ParseDuration(s string) (time.Duration, error)
- func RandString(n int) string
- func TakeScreenshotWithChromedp(url, file string) error
- func Version() string
- type CustomContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoDiscoverYML ¶
AutoDiscoverYML find yaml in given path
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 TakeScreenshotWithChromedp ¶
TakeScreenshotWithChromedp takes a screenshot of the current browser window.
Types ¶
Click to show internal directories.
Click to hide internal directories.