utils

package
v0.0.0-...-39e06ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const ErrTimeout = "Timed out waiting"

ErrTimeout is the error text of timeout error from WaitTill

Variables

This section is empty.

Functions

func IsEmptyString

func IsEmptyString(str string) bool

IsEmptyString returns 'true' if string contains NO non-whitespace characters

func IsNonEmptyString

func IsNonEmptyString(str string) bool

IsNonEmptyString returns 'true' if string contains ANY non-whitespace characters

func IsStringMissingInSlice

func IsStringMissingInSlice(str string, slice []string) bool

IsStringMissingInSlice returns 'true' if the provided slice DOES NOT contain provided string value

func IsStringValidEmail

func IsStringValidEmail(str string) bool

IsStringValidEmail returns 'true' if string meets requirements for an email address

func JoinErrors

func JoinErrors(errors ...error) string

JoinErrors concatenates error text of all errors into one semi-colon delimited string

func WaitTill

func WaitTill(condition func() bool, timeoutInSeconds int) error

WaitTill provided condition returns true or timeout occurs

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL