Get domain's tld by go
go get github.com/forease/gotld
import "github.com/forease/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 )
北京实易时代科技有限公司
Beijing ForEase Times Technology Co., Ltd.
http://www.forease.net
Jonsen Yang
im16hot#gmail.com (replace # with @)