mirror of
https://github.com/cubixle/email-checker.git
synced 2026-04-30 02:18:45 +01:00
added isGeneric method and tests
This commit is contained in:
@@ -1,2 +1,19 @@
|
||||
# email-checker
|
||||
Email checker is package with a collection of different methods of checking email addresses.
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import "github.com/lukerodham/email-checker"
|
||||
|
||||
func main() {
|
||||
is, err := checker.IsGeneric("example@gmail.com")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
if is {
|
||||
// do something?
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user