Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyOrWhitespaceOnlyRE = regexp.MustCompile(`^\s*$`)
EmptyOrWhitespaceOnlyRE is a regex that checks for blank or whitespace only strings
Functions ¶
func RequiredField ¶
RequiredField verifies that the given field is not empty
func RequiredID ¶
RequiredID verifies that the id is not empty
func RequiredIDandName ¶
RequiredIDandName verifies that the ID and Name fields are not empty
func RequiredName ¶
RequiredName verifies that the name is not empty
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.