kopia lustrzana https://github.com/reiver/greatape
12 wiersze
190 B
Go
12 wiersze
190 B
Go
|
package validators
|
||
|
|
||
|
import (
|
||
|
"regexp"
|
||
|
|
||
|
. "github.com/reiver/greatape/components/constants"
|
||
|
)
|
||
|
|
||
|
func EmailIsValid(input string) bool {
|
||
|
return regexp.MustCompile(EMAIL).MatchString(input)
|
||
|
}
|