Update dependencies and build to go1.22 (#2113)
* Update dependencies and build to go1.22 * Fix api changes wrt to dependencies * Update golangci config
This commit is contained in:
9
vendor/github.com/vmihailenco/msgpack/v5/encode_value.go
generated
vendored
9
vendor/github.com/vmihailenco/msgpack/v5/encode_value.go
generated
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user