File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
28
28
- msgpack.v2 support (#236 )
29
29
- pool/RoundRobinStrategy (#158 )
30
30
- DeadlineIO (#158 )
31
+ - UUID_extId (#158 )
31
32
32
33
### Fixed
33
34
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
)
23
23
24
24
// UUID external type.
25
- const UUID_extId = 2
25
+ const uuid_extID = 2
26
26
27
27
func encodeUUID (e * msgpack.Encoder , v reflect.Value ) error {
28
28
id := v .Interface ().(uuid.UUID )
@@ -63,12 +63,12 @@ func decodeUUID(d *msgpack.Decoder, v reflect.Value) error {
63
63
64
64
func init () {
65
65
msgpack .Register (reflect .TypeOf ((* uuid .UUID )(nil )).Elem (), encodeUUID , decodeUUID )
66
- msgpack .RegisterExtEncoder (UUID_extId , uuid.UUID {},
66
+ msgpack .RegisterExtEncoder (uuid_extID , uuid.UUID {},
67
67
func (e * msgpack.Encoder , v reflect.Value ) ([]byte , error ) {
68
68
uuid := v .Interface ().(uuid.UUID )
69
69
return uuid .MarshalBinary ()
70
70
})
71
- msgpack .RegisterExtDecoder (UUID_extId , uuid.UUID {},
71
+ msgpack .RegisterExtDecoder (uuid_extID , uuid.UUID {},
72
72
func (d * msgpack.Decoder , v reflect.Value , extLen int ) error {
73
73
return decodeUUID (d , v )
74
74
})
You can’t perform that action at this time.
0 commit comments