namecheck/namecheck.go

20 lines
222 B
Go

package namecheck
import (
"fmt"
)
type Validator interface {
IsValid(string) bool
}
type Provider interface {
IsAvailable(string) (bool, error)
}
type SocialNetwork interface {
fmt.Stringer
Validator
Provider
}