summaryrefslogtreecommitdiff
path: root/vendor/github.com/vmihailenco/msgpack/v5/encode_value.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/vmihailenco/msgpack/v5/encode_value.go')
-rw-r--r--vendor/github.com/vmihailenco/msgpack/v5/encode_value.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/vmihailenco/msgpack/v5/encode_value.go b/vendor/github.com/vmihailenco/msgpack/v5/encode_value.go
index 48cf489fa..1d6303a25 100644
--- a/vendor/github.com/vmihailenco/msgpack/v5/encode_value.go
+++ b/vendor/github.com/vmihailenco/msgpack/v5/encode_value.go
@@ -111,6 +111,8 @@ func _getEncoder(typ reflect.Type) encoderFunc {
switch typ.Elem() {
case stringType:
return encodeMapStringStringValue
+ case boolType:
+ return encodeMapStringBoolValue
case interfaceType:
return encodeMapStringInterfaceValue
}
@@ -198,6 +200,13 @@ func nilable(kind reflect.Kind) bool {
return false
}
+func nilableType(t reflect.Type) bool {
+ if t.Kind() == reflect.Ptr {
+ t = t.Elem()
+ }
+ return nilable(t.Kind())
+}
+
//------------------------------------------------------------------------------
func marshalBinaryValueAddr(e *Encoder, v reflect.Value) error {