diff --git a/README.md b/README.md index 62d528d..42b4a56 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ To install the package, run the following command in your terminal: ```bash -go get -v -u github.com/hueristiq/hq-go-url +go get -v -u go.source.hueristiq.com/url ``` This command will download and install the `hq-go-url` package into your Go workspace, making it available for use in your projects. @@ -52,7 +52,7 @@ package main import ( "fmt" - hqgourl "github.com/hueristiq/hq-go-url" + hqgourl "go.source.hueristiq.com/url" "regexp" ) @@ -98,7 +98,7 @@ package main import ( "fmt" - hqgourl "github.com/hueristiq/hq-go-url" + hqgourl "go.source.hueristiq.com/url" "regexp" ) @@ -148,7 +148,7 @@ package main import ( "fmt" - hqgourl "github.com/hueristiq/hq-go-url" + hqgourl "go.source.hueristiq.com/url" ) func main() { @@ -168,7 +168,7 @@ package main import ( "fmt" - hqgourl "github.com/hueristiq/hq-go-url" + hqgourl "go.source.hueristiq.com/url" ) func main() { diff --git a/domain_extractor.go b/domain_extractor.go index 5507c04..1514cb7 100644 --- a/domain_extractor.go +++ b/domain_extractor.go @@ -4,7 +4,7 @@ import ( "regexp" "unicode/utf8" - "github.com/hueristiq/hq-go-url/tlds" + "go.source.hueristiq.com/url/tlds" ) // DomainExtractor is responsible for extracting domain names, including both root domains diff --git a/domain_extractor_test.go b/domain_extractor_test.go index 280a654..26237f2 100644 --- a/domain_extractor_test.go +++ b/domain_extractor_test.go @@ -3,10 +3,10 @@ package url_test import ( "testing" - hqgourl "github.com/hueristiq/hq-go-url" - "github.com/hueristiq/hq-go-url/tlds" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + hqgourl "go.source.hueristiq.com/url" + "go.source.hueristiq.com/url/tlds" ) func TestDomainExtractor_CompileRegex_Default(t *testing.T) { diff --git a/domain_parser.go b/domain_parser.go index 7859890..45f1595 100644 --- a/domain_parser.go +++ b/domain_parser.go @@ -4,7 +4,7 @@ import ( "index/suffixarray" "strings" - "github.com/hueristiq/hq-go-url/tlds" + "go.source.hueristiq.com/url/tlds" ) // DomainParser is responsible for parsing domain names into their constituent parts: subdomain, diff --git a/domain_parser_test.go b/domain_parser_test.go index d561336..6032983 100644 --- a/domain_parser_test.go +++ b/domain_parser_test.go @@ -3,8 +3,8 @@ package url_test import ( "testing" - hqgourl "github.com/hueristiq/hq-go-url" "github.com/stretchr/testify/assert" + hqgourl "go.source.hueristiq.com/url" ) // Test parsing of a valid domain with subdomain, SLD, and TLD. diff --git a/go.mod b/go.mod index 024bf8e..7c7421b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/hueristiq/hq-go-url +module go.source.hueristiq.com/url go 1.23.3 diff --git a/tlds/tlds_official.go b/tlds/tlds_official.go index f1a0749..15c459f 100644 --- a/tlds/tlds_official.go +++ b/tlds/tlds_official.go @@ -55,6 +55,7 @@ var Official = []string{ "ac.ae", "ac.at", "ac.be", + "ac.bw", "ac.ci", "ac.cn", "ac.cr", @@ -75,6 +76,7 @@ var Official = []string{ "ac.ls", "ac.ma", "ac.me", + "ac.ml", "ac.mu", "ac.mw", "ac.mz", @@ -317,6 +319,7 @@ var Official = []string{ "art.do", "art.dz", "art.ht", + "art.ml", "art.sn", "arte", "arte.bo", @@ -366,6 +369,7 @@ var Official = []string{ "asso.ht", "asso.km", "asso.mc", + "asso.ml", "asso.nc", "asso.re", "associates", @@ -935,6 +939,7 @@ var Official = []string{ "co.am", "co.ao", "co.at", + "co.az", "co.bb", "co.bi", "co.bj", @@ -1477,9 +1482,11 @@ var Official = []string{ "edu.tt", "edu.tw", "edu.ua", + "edu.ug", "edu.uy", "edu.vc", "edu.ve", + "edu.vg", "edu.vn", "edu.vu", "edu.ws", @@ -1918,7 +1925,6 @@ var Official = []string{ "gold", "goldpoint", "golf", - "gon.pk", "gonohe.aomori.jp", "goo", "goodyear", @@ -1961,6 +1967,7 @@ var Official = []string{ "gov.br", "gov.bs", "gov.bt", + "gov.bw", "gov.by", "gov.bz", "gov.cd", @@ -2062,6 +2069,7 @@ var Official = []string{ "gov.tt", "gov.tw", "gov.ua", + "gov.ug", "gov.uk", "gov.vc", "gov.ve", @@ -2547,6 +2555,7 @@ var Official = []string{ "info.ki", "info.la", "info.ls", + "info.ml", "info.mv", "info.nf", "info.ni", @@ -2567,6 +2576,7 @@ var Official = []string{ "ingatlan.hu", "ink", "ino.kochi.jp", + "inst.ml", "institute", "insurance", "insurance.aero", @@ -3634,6 +3644,7 @@ var Official = []string{ "mil.tt", "mil.tw", "mil.tz", + "mil.ug", "mil.uy", "mil.vc", "mil.ve", @@ -4026,6 +4037,7 @@ var Official = []string{ "net.br", "net.bs", "net.bt", + "net.bw", "net.bz", "net.ci", "net.cm", @@ -4844,6 +4856,7 @@ var Official = []string{ "pr.gov.br", "pr.gov.pl", "pr.it", + "pr.ml", "pr.us", "pramerica", "prato.it", @@ -6176,6 +6189,7 @@ var Official = []string{ "us", "us.gov.pl", "us.in", + "us.ug", "usa.oita.jp", "ushiku.ibaraki.jp", "ustka.pl", diff --git a/url_extractor.go b/url_extractor.go index a9ad023..786a748 100644 --- a/url_extractor.go +++ b/url_extractor.go @@ -5,9 +5,9 @@ import ( "strings" "unicode/utf8" - "github.com/hueristiq/hq-go-url/schemes" - "github.com/hueristiq/hq-go-url/tlds" - "github.com/hueristiq/hq-go-url/unicodes" + "go.source.hueristiq.com/url/schemes" + "go.source.hueristiq.com/url/tlds" + "go.source.hueristiq.com/url/unicodes" ) // Extractor is a struct that configures the URL extraction process. diff --git a/url_extractor_test.go b/url_extractor_test.go index c5140e2..f08854f 100644 --- a/url_extractor_test.go +++ b/url_extractor_test.go @@ -3,7 +3,7 @@ package url_test import ( "testing" - hqgourl "github.com/hueristiq/hq-go-url" + hqgourl "go.source.hueristiq.com/url" ) func TestNewExtractor(t *testing.T) { diff --git a/url_parser_test.go b/url_parser_test.go index b79d0d4..f063c33 100644 --- a/url_parser_test.go +++ b/url_parser_test.go @@ -3,9 +3,9 @@ package url_test import ( "testing" - hqgourl "github.com/hueristiq/hq-go-url" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + hqgourl "go.source.hueristiq.com/url" ) // Test parsing a valid URL with a scheme and domain.