https://github.com/twiny/domaincheck
Domain Name Availability Checker
https://github.com/twiny/domaincheck
domainname golang whois
Last synced: 6 months ago
JSON representation
Domain Name Availability Checker
- Host: GitHub
- URL: https://github.com/twiny/domaincheck
- Owner: twiny
- License: mit
- Created: 2022-05-15T20:31:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T14:47:08.000Z (about 3 years ago)
- Last Synced: 2024-06-21T19:59:29.909Z (12 months ago)
- Topics: domainname, golang, whois
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## domaincheck
A domain name availability checker, using [whois](https://github.com/twiny/whois) client and regexp.
## Install
`go get github.com/twiny/domaincheck`## API
```go
NewChecker() (*Checker, error)
Check(ctx context.Context, domain string) (DomainStatus, error)
```## Example
```go
package mainimport (
"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
Bugs or suggestions? Please visit the [issue tracker](https://github.com/twiny/domaincheck/issues).