This package is dedicated to @whyrusleeping.
Docs: https://godoc.org/github.com/jbenet/go-is-domain
Check whether something is a domain.
import (
isd "github.com/jbenet/go-is-domain"
)
isd.IsDomain("foo.com") // true
isd.IsDomain("foo.bar.com.") // true
isd.IsDomain("foo.bar.baz") // falseMIT Licensed