(value string)
| 161 | } |
| 162 | |
| 163 | func IsEmail(value string) (bool, string, string) { |
| 164 | if _, err := mail.ParseAddress(value); err == nil { |
| 165 | return true, value, "" |
| 166 | } |
| 167 | |
| 168 | return false, value, "is an invalid email" |
| 169 | } |
| 170 | |
| 171 | func IsURL(value string) (bool, string, string) { |
| 172 | parsedURL, err := url.ParseRequestURI(value) |
nothing calls this directly
no outgoing calls
no test coverage detected