Feat: add models/cache/config

This commit is contained in:
Grail Finder
2025-05-02 09:06:17 +03:00
parent dbc87d7b9b
commit acaf4af4ce
13 changed files with 554 additions and 1 deletions

24
utils/main.go Normal file
View File

@ -0,0 +1,24 @@
package utils
import (
"strings"
"unicode"
)
func RemoveSpacesFromStr(origin string) string {
return strings.Map(func(r rune) rune {
if unicode.IsSpace(r) {
return -1
}
return r
}, origin)
}
func StrInSlice(key string, sl []string) bool {
for _, i := range sl {
if key == i {
return true
}
}
return false
}