1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/joezou-tug

Клонировать/Скачать
logic.go 410
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
joezou Отправлено 16.11.2017 18:31 1903be0
package tug
type not struct {
trueMatcher Matcher
}
func (this *not)Match(actual interface{}) bool {
return !this.trueMatcher.Match(actual)
}
func (this *not)FailReason(actual interface{})string {
return this.trueMatcher.NegationFailReason(actual)
}
func (this *not)NegationFailReason(actual interface{})string {
return ""
}
func Not(matcher Matcher) Matcher {
return &not{
trueMatcher:matcher,
}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/joezou-tug.git
git@api.gitlife.ru:oschina-mirror/joezou-tug.git
oschina-mirror
joezou-tug
joezou-tug
master