Moving utils.go to utils package

This commit is contained in:
aditya-K2
2021-12-13 01:35:40 +05:30
parent bc3e5b6741
commit 9b60cbc98e
9 changed files with 79 additions and 69 deletions

View File

@@ -4,6 +4,8 @@ import (
"strconv"
"time"
"github.com/aditya-K2/goMP/utils"
"github.com/aditya-K2/fuzzy"
"github.com/aditya-K2/goMP/cache"
"github.com/aditya-K2/goMP/config"
@@ -55,7 +57,7 @@ func main() {
Repeat, _ = strconv.ParseBool(_v["repeat"])
ARTIST_TREE, err = GenerateArtistTree()
ARTIST_TREE_CONTENT := ConvertToArray()
ARTIST_TREE_CONTENT := utils.ConvertToArray(ARTIST_TREE)
NOTIFICATION_SERVER = NewNotificationServer()
NOTIFICATION_SERVER.Start()
@@ -206,7 +208,7 @@ func main() {
if i == 10 {
break
}
suggestions = append(suggestions, getFormattedString(match.Str, w-2))
suggestions = append(suggestions, utils.GetFormattedString(match.Str, w-2))
}
return suggestions
} else {