func HasFeature(list []feature, key string) bool {
	target, ok := getFeature(key)
	if !ok {
		return false
	}
	for _, f := range list {
		if f == target {
			return true
		}
	}
	return false
}
HasFeature check whether a feature in the list
package generator
type feature int
const (
	placeHolder feature = iota
)
var (
	featureMap = make(map[string]feature)
	maxFeature = placeHolder
)