dip/vendor/github.com/likexian/whois-parser
Paul Lecuq 3f8a7d5d6e
All checks were successful
continuous-integration/drone/push Build is passing
updated dependencies
2022-12-17 17:57:23 +01:00
..
.gitignore updated dip dependencies 2021-11-12 12:28:10 +01:00
.golangci.yml updated dip dependencies 2021-11-12 12:28:10 +01:00
error.go updated dip, removing packr, updated dependencies, fixes 2022-08-18 01:16:43 +02:00
LICENSE updated dip, removing packr, updated dependencies, fixes 2022-08-18 01:16:43 +02:00
parser.go updated dip, removing packr, updated dependencies, fixes 2022-08-18 01:16:43 +02:00
prepare.go updated dip, removing packr, updated dependencies, fixes 2022-08-18 01:16:43 +02:00
README.md updated dip, removing packr, updated dependencies, fixes 2022-08-18 01:16:43 +02:00
rule.go updated dip, removing packr, updated dependencies, fixes 2022-08-18 01:16:43 +02:00
struct.go updated dip, removing packr, updated dependencies, fixes 2022-08-18 01:16:43 +02:00
util.go updated dependencies 2022-12-17 17:57:23 +01:00

WhoisParser

License GoDoc Go Report Card Build Status Code Cover

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

Overview

This module parses the provided domain 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 problem, 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

Importing

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

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

License

Copyright 2014-2022 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.