Merge remote-tracking branch 'origin/main' into feat-list-tags-of-machines

This commit is contained in:
Adrien Raffin-Caboisse 2022-05-03 20:35:28 +02:00
commit a2fb5b2b9d
No known key found for this signature in database
GPG key ID: 7FB60532DEBEAD6A
32 changed files with 1326 additions and 673 deletions

View file

@ -308,3 +308,13 @@ func GenerateRandomStringURLSafe(n int) (string, error) {
return base64.RawURLEncoding.EncodeToString(b), err
}
func IsStringInSlice(slice []string, str string) bool {
for _, s := range slice {
if s == str {
return true
}
}
return false
}