Skip to content

Commit

Permalink
chore: -
Browse files Browse the repository at this point in the history
  • Loading branch information
enenumxela committed Feb 12, 2023
1 parent 1deb204 commit b644cd0
Show file tree
Hide file tree
Showing 22 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
run: |
go clean -modcache
go mod tidy
working-directory: v2/
working-directory: .
-
name: Build
run: go build -v .
working-directory: v2/cmd/hqurlfind3r/
working-directory: cmd/hqurlfind3r/
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
with:
args: "release --rm-dist"
version: latest
workdir: v2/
workdir: .
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ go install -v github.com/hueristiq/hqurlfind3r/v2/cmd/hqurlfind3r@latest

```bash
git clone https://github.com/hueristiq/hqurlfind3r.git && \
cd hqurlfind3r/v2/cmd/hqurlfind3r/ && \
cd hqurlfind3r/cmd/hqurlfind3r/ && \
go build; mv hqurlfind3r /usr/local/bin/ && \
hqurlfind3r -h
```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"regexp"
"strings"

"github.com/hueristiq/hqgoutils/url"
hqurl "github.com/hueristiq/hqgoutils/url"
)

type Filter struct {
Expand All @@ -16,7 +16,7 @@ type Filter struct {
func (filter Filter) Examine(inputURL string) (outputURL string, pass bool) {
var (
err error
parsedURL *url.URL
parsedURL *hqurl.URL
)

outputURL = inputURL
Expand All @@ -27,7 +27,7 @@ func (filter Filter) Examine(inputURL string) (outputURL string, pass bool) {
outputURL = strings.Trim(outputURL, " ")

// if error parsing, ignore URL
parsedURL, err = url.Parse(url.Options{URL: outputURL})
parsedURL, err = hqurl.Parse(hqurl.Options{URL: outputURL})
if err != nil {
return
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"sync"

"github.com/hueristiq/hqgoutils/url"
hqurl "github.com/hueristiq/hqgoutils/url"
"github.com/hueristiq/hqurlfind3r/v2/pkg/runner/collector/filter"
"github.com/hueristiq/hqurlfind3r/v2/pkg/runner/collector/output"
"github.com/hueristiq/hqurlfind3r/v2/pkg/runner/collector/requests"
Expand Down Expand Up @@ -94,7 +94,7 @@ func (source *Source) Run(keys sources.Keys, ftr filter.Filter) chan output.URL
}
}

parsedURL, _ := url.Parse(url.Options{URL: row[1]})
parsedURL, _ := hqurl.Parse(hqurl.Options{URL: row[1]})

endpoint = filepath.Join(parsedURL.Host, endpoint)
endpoint = parsedURL.Scheme + "://" + endpoint
Expand Down
8 changes: 4 additions & 4 deletions v2/pkg/runner/runner.go → pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package runner

import (
"fmt"
urlz "net/url"
"net/url"

"github.com/hueristiq/hqgoutils/url"
hqurl "github.com/hueristiq/hqgoutils/url"
"github.com/hueristiq/hqurlfind3r/v2/pkg/runner/collector"
"github.com/hueristiq/hqurlfind3r/v2/pkg/runner/collector/output"
)
Expand All @@ -26,7 +26,7 @@ func (runner *Runner) Run() (URLs chan output.URL, err error) {

results := runner.Collector.Collect()

deDupMap := make(map[string]urlz.Values)
deDupMap := make(map[string]url.Values)
uniqueMap := make(map[string]output.URL)

// Process the results in a separate goroutine
Expand All @@ -39,7 +39,7 @@ func (runner *Runner) Run() (URLs chan output.URL, err error) {
continue
}

parsedURL, err := url.Parse(url.Options{URL: result.Value})
parsedURL, err := hqurl.Parse(hqurl.Options{URL: result.Value})
if err != nil {
continue
}
Expand Down

0 comments on commit b644cd0

Please sign in to comment.