From a912dab90916c8c16ec409d2d9b9f283bc7a6dae Mon Sep 17 00:00:00 2001 From: kenjoe41 Date: Wed, 12 Jan 2022 00:13:31 +0300 Subject: [PATCH] `Package utils` is a bad ideas. --- utils/utils.go => ezUtils/ezUtils.go | 2 +- main.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename utils/utils.go => ezUtils/ezUtils.go (98%) diff --git a/utils/utils.go b/ezUtils/ezUtils.go similarity index 98% rename from utils/utils.go rename to ezUtils/ezUtils.go index b5dfd65..5f93aa7 100644 --- a/utils/utils.go +++ b/ezUtils/ezUtils.go @@ -1,4 +1,4 @@ -package utils +package ezUtils import ( "log" diff --git a/main.go b/main.go index 91fc267..e176ba9 100644 --- a/main.go +++ b/main.go @@ -10,8 +10,8 @@ import ( "strings" "sync" + "github.com/kenjoe41/goSubsWordlist/ezUtils" "github.com/kenjoe41/goSubsWordlist/output" - "github.com/kenjoe41/goSubsWordlist/utils" ) func main() { @@ -49,7 +49,7 @@ 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 @@ -57,7 +57,7 @@ func main() { continue } - subdomain := utils.ExtractSubdomain(domain, includeRoot) + subdomain := ezUtils.ExtractSubdomain(domain, includeRoot) if subdomain == "" { // Log something but continue to next domain if available @@ -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 {