add map input

This commit is contained in:
2020-11-01 18:57:35 +03:00
parent 50df7ec000
commit 596026ae92
9 changed files with 128 additions and 123 deletions

View File

@@ -6,11 +6,15 @@ import (
// nolint: gochecknoglobals
var (
Empty = &empty{}
emptyValue = &empty{}
)
func Empty() Value {
return emptyValue
}
func IsEmpty(v Value) bool {
return v == nil || v == Empty
return v == nil || v == emptyValue
}
type empty struct{}