https://github.com/haccer/available
Domain availability checking for Golang
https://github.com/haccer/available
availability domain go golang whois
Last synced: 6 months ago
JSON representation
Domain availability checking for Golang
- Host: GitHub
- URL: https://github.com/haccer/available
- Owner: haccer
- License: gpl-3.0
- Created: 2018-06-05T05:05:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T18:06:50.000Z (over 1 year ago)
- Last Synced: 2025-04-05T07:41:40.252Z (7 months ago)
- Topics: availability, domain, go, golang, whois
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 45
- Watchers: 1
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Is 'domain.x' Available?
[](https://travis-ci.org/haccer/available)
[](https://goreportcard.com/report/github.com/haccer/available)
[](http://godoc.org/github.com/haccer/available)
[](https://github.com/haccer/available/blob/master/LICENSE)
> IN WHOIS WE TRUST
My cheap way of checking whether a domain is available to be purchased or not (powered by [whois](https://github.com/domainr/whois)).
#### Disclaimer
This package _might not_ be able to check the available for _every_ possible domain TLD, since `whois` does not work with some TLDs. In the future, I might include options to call different APIs (Gandi API, Domainr, etc.).
### Example
```Go
package main
import (
"fmt"
"github.com/haccer/available"
)
func main() {
domain := "dreamdomain.io"
available := available.Domain(domain)
if available {
fmt.Println("[+] Success!")
}
}
```