|
@@ -84,6 +84,14 @@ func isType(l, r any) bool {
|
|
|
return lType.ConvertibleTo(rType)
|
|
|
}
|
|
|
|
|
|
+func (s Map) IsNil(key string) bool {
|
|
|
+ if iface, check := s[key]; check {
|
|
|
+ return iface == nil
|
|
|
+ }
|
|
|
+ return false
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
func (s Map) IsInt(key string) bool {
|
|
|
if iface, check := s[key]; check {
|
|
|
return isType(iface, int(0))
|