package to access to the Tranco list, published at https://tranco-list.eu.
import github.com/mustafaocak/trancoCreate a variable of type TrancoList
var tl tranco.TrancoListTo get the latest tranco list
t.Should_cache = true
tl = t.List("latest")To get the rank info a domain in the list
fmt.Println(tl.Rank("google.com"))To get top 10 elements of the list
fmt.Println(tl.Top(10))