Merge remote-tracking branch 'origin/main' into feat-list-tags-of-machines
This commit is contained in:
commit
a2fb5b2b9d
32 changed files with 1326 additions and 673 deletions
10
utils.go
10
utils.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue