Closed ghost closed 3 years ago
package main import ( "fmt" "github.com/bobesa/go-domain-util/domainutil" ) func main() { fmt.Println(domainutil.HasSubdomain("node-p2e-hio4ox.sitescout.com")) fmt.Println(domainutil.Domain("node-p2e-hio4ox.sitescout.com")) }