A domain name availability checker, using whois client and regexp.
go get github.com/twiny/domaincheck
NewChecker() (*Checker, error)
Check(ctx context.Context, domain string) (DomainStatus, error)
package main
import (
"context"
"fmt"
"log"
"github.com/twiny/domaincheck"
)
func main() {
checker, err := domaincheck.NewChecker()
if err != nil {
log.Fatal(err)
}
status, err := checker.Check(context.Background(), "example.com")
if err != nil {
log.Fatal(err)
}
fmt.Println(status)
}
Bugs or suggestions? Please visit the issue tracker.