예제 #1
0
파일: map.go 프로젝트: elvin-du/golang
// Check is the Condition interface implementation for Map
func (m *Map) Check(params data.Parameters) bool {
	if value, error := params.Get(m.Name); error == nil {
		if _, check := m.Values[value]; check {
			return !m.Exclude
		}
	}
	return m.Exclude
}