3
0
Files
corteza/pkg/y7s/test.go
2021-01-25 18:05:24 +01:00

20 lines
221 B
Go

package y7s
// y7s (YAML Utils)
import (
"gopkg.in/yaml.v3"
)
func IsKind(n *yaml.Node, tt ...yaml.Kind) bool {
if n != nil {
for _, t := range tt {
if t == n.Kind {
return true
}
}
}
return false
}