Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 553 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 553 Bytes

gotld

Get domain's tld by go

Install gotld

go get github.com/forease/gotld

Import gotld

import "github.com/forease/gotld"

Use gotld

For example.

tld, domain, err := gotld.GetTld( *url )
if err != nil {
    fmt.Println( err )
    return
}
fmt.Printf( "TLD: %s, Domain: %s\n", tld.Tld, domain )

About

北京实易时代科技有限公司
Beijing ForEase Times Technology Co., Ltd.
http://www.forease.net

Contact me

Jonsen Yang
im16hot#gmail.com (replace # with @)