namecheck/namecheck.go

20 lines
222 B
Go
Raw Normal View History

2019-12-04 16:58:38 +01:00
package namecheck
import (
"fmt"
)
type Validator interface {
IsValid(string) bool
}
type Provider interface {
IsAvailable(string) (bool, error)
}
type SocialNetwork interface {
fmt.Stringer
Validator
Provider
}