Nikhita Raghunath
fb5614a4ca
Don't marshal empty byte or uint8 slice as null
...
[]byte or []uint8 are encoded as base-64 encoded string. Per this, non-nil
empty slice should not get marshalled as null, rather as "".
This restores compatibility with the standard library.
2019-06-03 16:19:17 +05:30
Tao Wen
8744d7c5c7
\n should not be ignored in base64 decode
2018-05-26 09:43:29 +08:00
Tao Wen
37cc313d18
fix #274 , unescape before base64 decode
2018-05-26 09:38:52 +08:00
ceshihao
6a6742f0a2
fix base64 contains newline characters \r or \n
2018-04-23 23:10:55 +08:00
Tao Wen
455b3f8bb8
move reflect2 from plz to modern-go
2018-02-28 17:09:30 +08:00
Tao Wen
fff342fd04
gofmt
2018-02-24 22:04:41 +08:00
Tao Wen
ebe943a4a6
fix #241 , support 32bit platform
2018-02-23 08:12:45 +08:00
Tao Wen
99fc16a363
use reflect2 to replace reflect
2018-02-22 10:12:08 +08:00
Tao Wen
a3866383f5
support recursive struct
2018-02-21 17:59:41 +08:00
Tao Wen
2fcbb23d96
rewrite how eface and iface are handled
2018-02-21 12:16:50 +08:00
Tao Wen
63ea5e3131
move encoder/decoder of native
2018-02-20 22:55:31 +08:00
Tao Wen
895a19f2dc
move json raw message
2018-02-20 22:38:35 +08:00
Tao Wen
6327145300
move json number impl
2018-02-19 23:13:33 +08:00
Tao Wen
3d39af6dd9
remove feature prefix
2018-02-19 23:04:25 +08:00