Add link to register available domain with namecheap

This commit is contained in:
Chandler Swift 2021-10-18 22:37:28 -05:00
parent 0d2575bc0a
commit ddc6688af5
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -72,6 +72,7 @@ func getSites(largest int, wd selenium.WebDriver) (sites []HatsSite, err error)
result, err := whoisparser.Parse(query_result)
if err == whoisparser.ErrNotFoundDomain {
hatsSite.Available = true
hatsSite.Notes = template.HTML(fmt.Sprintf("Register at <a href='https://www.namecheap.com/domains/registration/results/?domain=%v'>NameCheap</a>", hatsSite.DomainName))
sites = append(sites, hatsSite)
continue
} else if err != nil {