Feat: switch team; team model

This commit is contained in:
Grail Finder
2025-05-08 15:36:25 +03:00
parent 21948b23f4
commit 3cc2ecb93d
8 changed files with 122 additions and 60 deletions

View File

@ -22,3 +22,16 @@ func StrInSlice(key string, sl []string) bool {
}
return false
}
func RemoveFromSlice(key string, sl []string) []string {
if !StrInSlice(key, sl) {
return sl
}
resp := []string{}
for _, el := range sl {
if el != key {
resp = append(resp, el)
}
}
return resp
}