mirror of
https://github.com/foomo/sesamy-cli.git
synced 2025-10-16 12:35:36 +00:00
16 lines
239 B
Go
16 lines
239 B
Go
package utils
|
|
|
|
import (
|
|
"slices"
|
|
)
|
|
|
|
func Tag(name string, tags []string) bool {
|
|
if len(tags) == 0 {
|
|
return true
|
|
}
|
|
if len(tags) > 0 && !slices.Contains(tags, "-"+name) && slices.Contains(tags, name) {
|
|
return true
|
|
}
|
|
return false
|
|
}
|