dip/vendor/github.com/likexian/whois-parser-go
Paul Lecuq 6cf084d497
Some checks failed
continuous-integration/drone/push Build is failing
updated dependencies
2021-08-30 19:51:04 +02:00
..
.gitignore first commit 2019-12-22 18:20:45 +01:00
.travis.yml first commit 2019-12-22 18:20:45 +01:00
LICENSE updated and refactored dip project 2020-05-24 18:42:01 +02:00
parser.go updated dependencies 2020-12-04 20:58:53 +01:00
prepare.go updated dependencies 2020-12-04 20:58:53 +01:00
README.md updated and refactored dip project 2020-05-24 18:42:01 +02:00
rule.go updated dependencies 2020-12-04 20:58:53 +01:00
struct.go updated dependencies 2020-12-04 20:58:53 +01:00
utils.go updated dependencies 2020-12-04 20:58:53 +01:00

WhoisParser

License GoDoc Build Status Go Report Card Code Cover

WhoisParser is s simple Go module for domain whois information parsing.

Overview

This module parses the provided whois information and returns a readable data struct.

Verified Extensions

It is supposed to be working with all domain extensions, but verified extensions must works, because I have checked them one by one manually.

If there is any problems, please feel free to open a new issue.

Binary distributions

For binary distributions of whois information query and parsing, please download whois release tool.

Installation

go get github.com/likexian/whois-parser-go

Importing

import (
    "github.com/likexian/whois-parser-go"
)

Documentation

Visit the docs on GoDoc

Example

result, err := whoisparser.Parse(whois_raw)
if err == nil {
    // Print the domain status
    fmt.Println(result.Domain.Status)

    // Print the domain created date
    fmt.Println(result.Domain.CreatedDate)

    // Print the domain expiration date
    fmt.Println(result.Domain.ExpirationDate)

    // Print the registrar name
    fmt.Println(result.Registrar.Name)

    // Print the registrant name
    fmt.Println(result.Registrant.Name)

    // Print the registrant email address
    fmt.Println(result.Registrant.Email)
}

Whois information query

Please refer to whois-go

License

Copyright 2014-2020 Li Kexian

Licensed under the Apache License 2.0

Donation

If this project is helpful, please share it with friends.

If you want to thank me, you can give me a cup of coffee.