Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginsWith ¶
beginsWith returns true if s begins with any of the strings in the provided slice
func ContainsAny ¶
ContainsAny checks if str contains any of the substrings
func CreateDirIfNotExists ¶
func CreateDirIfNotExists(path string)
CreateDirIfNotExists will create a directory at path if it doesn't exist using os.MkdirAll
func IsAbsoluteURL ¶
isAbsoluteURL checks if href is absolute URL
e.g.
<http|https>://google.com/query -> true
/query -> false
func IsValidScheme ¶
isValidScheme tells if the scheme is valid
func ValuePresent ¶
ValuePresent checks if needle is present in haystack
Types ¶
type Validator ¶
func NewValidator ¶
func NewValidator() *Validator
Click to show internal directories.
Click to hide internal directories.