Skip to content

Commit

Permalink
Package utils is a bad ideas.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjoe41 committed Jan 11, 2022
1 parent 7753830 commit a912dab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion utils/utils.go → ezUtils/ezUtils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package utils
package ezUtils

import (
"log"
Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"sync"

"github.com/kenjoe41/goSubsWordlist/ezUtils"
"github.com/kenjoe41/goSubsWordlist/output"
"github.com/kenjoe41/goSubsWordlist/utils"
)

func main() {
Expand Down Expand Up @@ -49,15 +49,15 @@ func main() {
for inDomain := range domains {
inDomain = strings.TrimSpace(strings.ToLower(inDomain))

domain := utils.CleanDomain(inDomain)
domain := ezUtils.CleanDomain(inDomain)

if domain == "" {
// Log something but continue to next domain if available
// log.Printf("Failed to get domain from: %s", domain)
continue
}

subdomain := utils.ExtractSubdomain(domain, includeRoot)
subdomain := ezUtils.ExtractSubdomain(domain, includeRoot)

if subdomain == "" {
// Log something but continue to next domain if available
Expand All @@ -83,7 +83,7 @@ func main() {

// Split the subdomain into separate words by the '.' char.
// Returns slice of words.
subWords := utils.SplitSubToWords(inSubdomains)
subWords := ezUtils.SplitSubToWords(inSubdomains)

// Print to console for now
for _, subword := range subWords {
Expand Down

0 comments on commit a912dab

Please sign in to comment.