whois-parser-go

Go module for domain whois info parse

Github星跟踪图

whois-parser.go

License
GoDoc
Build Status
Go Report Card
Code Cover

whois-parser-go is a simple Go module for domain whois info parse.

Overview

This module parses the provided whois information and return 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.

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 info query in Go

Please refer to whois-go

LICENSE

Copyright 2014-2019 Li Kexian

Licensed under the Apache License 2.0

About

主要指标

概览
名称与所有者likexian/whois-parser
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2014-08-30 07:06:10
推送于2024-12-17 02:55:29
最后一次提交2024-12-17 10:55:28
发布数88
最新版本名称v1.24.20 (发布于 )
第一版名称1.0.0 (发布于 )
用户参与
星数314
关注者数5
派生数95
提交数229
已启用问题?
问题数50
打开的问题数7
拉请求数33
打开的拉请求数1
关闭的拉请求数12
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?