Description

Split splits a name s into its label indexes. www.miek.nl. returns []int{0, 4, 9}, www.miek.nl also returns []int{0, 4, 9}. The root name (.) returns nil. Also see SplitDomainName. s must be a syntactically valid domain name.

Split is referenced in 11 repositories

github.com/miekg/dns github.com/NopullSmile/lantern github.com/getlantern/lantern

...