Closed idealism-xxm closed 4 years ago
go4.org is too large and only singleflight is used, so I replace go4.org/syncutil/singleflight with golang.org/x/sync/singleflight which is better.
go4.org
singleflight
To avoid panics when marshal/unmarshal object without msgpack tag, call UseJSONTag(true) from Encoder/Decoder before calling Marshal/Unmarshal.
msgpack
UseJSONTag(true)
Encoder/Decoder
Marshal/Unmarshal
Looks good - thanks!
go4.org
is too large and onlysingleflight
is used, so I replace go4.org/syncutil/singleflight with golang.org/x/sync/singleflight which is better.To avoid panics when marshal/unmarshal object without
msgpack
tag, callUseJSONTag(true)
fromEncoder/Decoder
before callingMarshal/Unmarshal
.