Skip to content

linkosmos/gotldmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotldmap

Top Level Domain map

Build Status Coverage Status GoDoc Go Report Card BSD License

Internet Assigned Numbers Authority

https://data.iana.org/TLD/tlds-alpha-by-domain.txt

Functions

	mark, err := gotldmap.FindByTld("com")
	tld, err := gotldmap.FindByMark(165)

Usage

package main

import (
	"fmt"

	"github.com/linkosmos/gotldmap"
)

func main() {
	mark, err := gotldmap.FindByTld("com")
	if err != nil {
		fmt.Println(err)
	}

	fmt.Println(fmt.Sprintf("TLD %s mark %d", "com", mark))
}

Releases

No releases published

Packages

No packages published