build(deps): bump github.com/shamaton/msgpack/v2 from 2.1.1 to 2.2.0
Bumps [github.com/shamaton/msgpack/v2](https://github.com/shamaton/msgpack) from 2.1.1 to 2.2.0. - [Release notes](https://github.com/shamaton/msgpack/releases) - [Commits](https://github.com/shamaton/msgpack/compare/v2.1.1...v2.2.0) --- updated-dependencies: - dependency-name: github.com/shamaton/msgpack/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
09fad45811
commit
c2c740592d
+18
-1
@@ -1,6 +1,11 @@
|
||||
package msgpack
|
||||
|
||||
import "github.com/shamaton/msgpack/v2/internal/decoding"
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/shamaton/msgpack/v2/internal/decoding"
|
||||
streamdecoding "github.com/shamaton/msgpack/v2/internal/stream/decoding"
|
||||
)
|
||||
|
||||
// UnmarshalAsMap decodes data that is encoded as map format.
|
||||
// This is the same thing that StructAsArray sets false.
|
||||
@@ -13,3 +18,15 @@ func UnmarshalAsMap(data []byte, v interface{}) error {
|
||||
func UnmarshalAsArray(data []byte, v interface{}) error {
|
||||
return decoding.Decode(data, v, true)
|
||||
}
|
||||
|
||||
// UnmarshalReadAsMap decodes from stream. stream data expects map format.
|
||||
// This is the same thing that StructAsArray sets false.
|
||||
func UnmarshalReadAsMap(r io.Reader, v interface{}) error {
|
||||
return streamdecoding.Decode(r, v, false)
|
||||
}
|
||||
|
||||
// UnmarshalReadAsArray decodes from stream. stream data expects array format.
|
||||
// This is the same thing that StructAsArray sets true.
|
||||
func UnmarshalReadAsArray(r io.Reader, v interface{}) error {
|
||||
return streamdecoding.Decode(r, v, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user