Moving utils.go to utils package
This commit is contained in:
6
main.go
6
main.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user