File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,13 @@ func (t Type) String() string {
57
57
// ErrDataSizeTooLarge is the data size too large error.
58
58
var ErrDataSizeTooLarge = errors .New ("msgpack: data size too large" )
59
59
60
+ // ExtensionMap specifies functions for converting MessagePack extensions to Go
61
+ // values.
62
+ //
63
+ // The key is the MessagePack extension type.
64
+ // The value is a function that converts the extension data to a Go value.
65
+ type ExtensionMap map [int ]func ([]byte ) (interface {}, error )
66
+
60
67
// Decoder reads MessagePack objects from an io.Reader.
61
68
type Decoder struct {
62
69
extensions ExtensionMap
@@ -77,13 +84,6 @@ func NewDecoder(r io.Reader) *Decoder {
77
84
}
78
85
}
79
86
80
- // ExtensionMap specifies functions for converting MessagePack extensions to Go
81
- // values.
82
- //
83
- // The key is the MessagePack extension type.
84
- // The value is a function that converts the extension data to a Go value.
85
- type ExtensionMap map [int ]func ([]byte ) (interface {}, error )
86
-
87
87
// SetExtensions specifies functions for converting MessagePack extensions to Go
88
88
// values.
89
89
func (d * Decoder ) SetExtensions (extensions ExtensionMap ) {
You can’t perform that action at this time.
0 commit comments