mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
13 lines
167 B
Go
13 lines
167 B
Go
|
package models
|
||
|
|
||
|
type IntervalKey []string
|
||
|
|
||
|
func (k *IntervalKey) HasAlias(s string) bool {
|
||
|
for _, e := range *k {
|
||
|
if e == s {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|