mirror of
https://github.com/owncloud/ocis
synced 2026-05-05 06:32:34 +02:00
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
15
vendor/github.com/shamaton/msgpack/v2/encode.go
generated
vendored
15
vendor/github.com/shamaton/msgpack/v2/encode.go
generated
vendored
@@ -1,7 +1,10 @@
|
||||
package msgpack
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/shamaton/msgpack/v2/internal/encoding"
|
||||
streamencoding "github.com/shamaton/msgpack/v2/internal/stream/encoding"
|
||||
)
|
||||
|
||||
// MarshalAsMap encodes data as map format.
|
||||
@@ -15,3 +18,15 @@ func MarshalAsMap(v interface{}) ([]byte, error) {
|
||||
func MarshalAsArray(v interface{}) ([]byte, error) {
|
||||
return encoding.Encode(v, true)
|
||||
}
|
||||
|
||||
// MarshalWriteAsMap writes map format encoded data to writer.
|
||||
// This is the same thing that StructAsArray sets false.
|
||||
func MarshalWriteAsMap(w io.Writer, v interface{}) error {
|
||||
return streamencoding.Encode(w, v, false)
|
||||
}
|
||||
|
||||
// MarshalWriteAsArray writes array format encoded data to writer.
|
||||
// This is the same thing that StructAsArray sets true.
|
||||
func MarshalWriteAsArray(w io.Writer, v interface{}) error {
|
||||
return streamencoding.Encode(w, v, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user