mirror of
https://github.com/owncloud/ocis
synced 2026-05-05 06:32:34 +02:00
switch to go vendoring
This commit is contained in:
17
vendor/github.com/shamaton/msgpack/v2/encode.go
generated
vendored
Normal file
17
vendor/github.com/shamaton/msgpack/v2/encode.go
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package msgpack
|
||||
|
||||
import (
|
||||
"github.com/shamaton/msgpack/v2/internal/encoding"
|
||||
)
|
||||
|
||||
// MarshalAsMap encodes data as map format.
|
||||
// This is the same thing that StructAsArray sets false.
|
||||
func MarshalAsMap(v interface{}) ([]byte, error) {
|
||||
return encoding.Encode(v, false)
|
||||
}
|
||||
|
||||
// MarshalAsArray encodes data as array format.
|
||||
// This is the same thing that StructAsArray sets true.
|
||||
func MarshalAsArray(v interface{}) ([]byte, error) {
|
||||
return encoding.Encode(v, true)
|
||||
}
|
||||
Reference in New Issue
Block a user