Skip to content

Commit

Permalink
chore(*): -
Browse files Browse the repository at this point in the history
  • Loading branch information
enenumxela committed Jan 27, 2025
1 parent 445872d commit dfbc3db
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -52,7 +52,7 @@ package main

import (
"fmt"
hqgourl "github.com/hueristiq/hq-go-url"
hqgourl "go.source.hueristiq.com/url"
"regexp"
)

Expand Down Expand Up @@ -98,7 +98,7 @@ package main

import (
"fmt"
hqgourl "github.com/hueristiq/hq-go-url"
hqgourl "go.source.hueristiq.com/url"
"regexp"
)

Expand Down Expand Up @@ -148,7 +148,7 @@ package main
import (
"fmt"

hqgourl "github.com/hueristiq/hq-go-url"
hqgourl "go.source.hueristiq.com/url"
)

func main() {
Expand All @@ -168,7 +168,7 @@ package main
import (
"fmt"

hqgourl "github.com/hueristiq/hq-go-url"
hqgourl "go.source.hueristiq.com/url"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion domain_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions domain_extractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion domain_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion domain_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/hueristiq/hq-go-url
module go.source.hueristiq.com/url

go 1.23.3

Expand Down
16 changes: 15 additions & 1 deletion tlds/tlds_official.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ var Official = []string{
"ac.ae",
"ac.at",
"ac.be",
"ac.bw",
"ac.ci",
"ac.cn",
"ac.cr",
Expand All @@ -75,6 +76,7 @@ var Official = []string{
"ac.ls",
"ac.ma",
"ac.me",
"ac.ml",
"ac.mu",
"ac.mw",
"ac.mz",
Expand Down Expand Up @@ -317,6 +319,7 @@ var Official = []string{
"art.do",
"art.dz",
"art.ht",
"art.ml",
"art.sn",
"arte",
"arte.bo",
Expand Down Expand Up @@ -366,6 +369,7 @@ var Official = []string{
"asso.ht",
"asso.km",
"asso.mc",
"asso.ml",
"asso.nc",
"asso.re",
"associates",
Expand Down Expand Up @@ -935,6 +939,7 @@ var Official = []string{
"co.am",
"co.ao",
"co.at",
"co.az",
"co.bb",
"co.bi",
"co.bj",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -1918,7 +1925,6 @@ var Official = []string{
"gold",
"goldpoint",
"golf",
"gon.pk",
"gonohe.aomori.jp",
"goo",
"goodyear",
Expand Down Expand Up @@ -1961,6 +1967,7 @@ var Official = []string{
"gov.br",
"gov.bs",
"gov.bt",
"gov.bw",
"gov.by",
"gov.bz",
"gov.cd",
Expand Down Expand Up @@ -2062,6 +2069,7 @@ var Official = []string{
"gov.tt",
"gov.tw",
"gov.ua",
"gov.ug",
"gov.uk",
"gov.vc",
"gov.ve",
Expand Down Expand Up @@ -2547,6 +2555,7 @@ var Official = []string{
"info.ki",
"info.la",
"info.ls",
"info.ml",
"info.mv",
"info.nf",
"info.ni",
Expand All @@ -2567,6 +2576,7 @@ var Official = []string{
"ingatlan.hu",
"ink",
"ino.kochi.jp",
"inst.ml",
"institute",
"insurance",
"insurance.aero",
Expand Down Expand Up @@ -3634,6 +3644,7 @@ var Official = []string{
"mil.tt",
"mil.tw",
"mil.tz",
"mil.ug",
"mil.uy",
"mil.vc",
"mil.ve",
Expand Down Expand Up @@ -4026,6 +4037,7 @@ var Official = []string{
"net.br",
"net.bs",
"net.bt",
"net.bw",
"net.bz",
"net.ci",
"net.cm",
Expand Down Expand Up @@ -4844,6 +4856,7 @@ var Official = []string{
"pr.gov.br",
"pr.gov.pl",
"pr.it",
"pr.ml",
"pr.us",
"pramerica",
"prato.it",
Expand Down Expand Up @@ -6176,6 +6189,7 @@ var Official = []string{
"us",
"us.gov.pl",
"us.in",
"us.ug",
"usa.oita.jp",
"ushiku.ibaraki.jp",
"ustka.pl",
Expand Down
6 changes: 3 additions & 3 deletions url_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion url_extractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion url_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dfbc3db

Please sign in to comment.