switch to go vendoring

This commit is contained in:
Michael Barz
2023-04-19 20:10:09 +02:00
parent 632fa05ef9
commit afc6ed1e41
8527 changed files with 3004916 additions and 2 deletions

17
vendor/github.com/shamaton/msgpack/v2/encode.go generated vendored Normal file
View 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)
}