Commit graph

77 commits

Author SHA1 Message Date
k1LoW
38cc1a72b5 Fix empty map encoding style 2020-03-07 09:50:32 +09:00
k1LoW
0b3ce0180a Distinguish between empty ptr value (e.g. *int, *string) and nil ptr value 2020-02-22 11:46:09 +09:00
k1LoW
d2828e4ada Detect line break character in only string scope. 2020-02-17 21:14:54 +09:00
k1LoW
03f0e2137f Add support for multi-line string encoding 2020-02-16 16:10:19 +09:00
Masaaki Goshima
fee8ac5323
Merge pull request #81 from k1LoW/empty-slice-and-nil-slice2
Encode both empty and nil slices into `[]`
2020-02-14 17:59:51 +09:00
k1LoW
7286d81808 Encode both empty and nil slices into [] 2020-02-14 17:28:54 +09:00
Kyoichiro Yamada
81b7b6d4a7 support encoding.TextMarshaler and encoding.TextUnmarshaler 2020-01-12 02:50:51 +09:00
Masaaki Goshima
3544475f12 Support MarshalAnchor option for encoder 2020-01-09 13:33:10 +09:00
Masaaki Goshima
a357645772 Fix calculating indent number at encoding 2019-12-12 17:38:01 +09:00
Masaaki Goshima
be91749a25 Remove tag handling without identifier 2019-11-13 12:16:26 +09:00
Masaaki Goshima
928f27cb22 Fix encoding for time type 2019-11-07 21:14:36 +09:00
Masaaki Goshima
41320deceb Fix multi bytes handling 2019-11-07 18:01:45 +09:00
Masaaki Goshima
a5c9b0d532 Support multi bytes encoding/decoding 2019-11-07 17:18:17 +09:00
Masaaki Goshima
e4be76e5f8 Add Flow option for Encoder 2019-10-31 13:29:43 +09:00
Masaaki Goshima
5e642017ee Add test cases for flow style 2019-10-31 13:08:11 +09:00
Masaaki Goshima
bf46097160 Supports encoding with inline tag and conflict key 2019-10-28 22:25:00 +09:00
Masaaki Goshima
20d60ef22c Refactor encoding test 2019-10-28 22:13:03 +09:00
Masaaki Goshima
b22b2bd40f Supports inline option for encoding 2019-10-28 21:37:12 +09:00
Daisuke Maki
40ece17985 documentation about he (Un)?Marshalers 2019-10-26 18:39:15 +09:00
Daisuke Maki
45fff8a4fc oops, fix the output 2019-10-23 21:05:41 +09:00
Daisuke Maki
5230109395 tweak docs 2019-10-23 21:00:00 +09:00
Masaaki Goshima
4459e2201a Fix bt gofmt -s and misspell 2019-10-21 01:28:48 +09:00
Masaaki Goshima
97fb2e2039 Support encoding with merge key ( like <<: *default ) 2019-10-20 21:47:48 +09:00
Masaaki Goshima
8b6f1c6325 Support implicit declaration for anchor and alias 2019-10-20 13:31:29 +09:00
Masaaki Goshima
de8cc9f12b Support automatically alias detection 2019-10-20 13:06:32 +09:00
Masaaki Goshima
79017b4e1c Support encoding with Anchor or Alias 2019-10-19 22:02:15 +09:00
Masaaki Goshima
dce0f43e97 Add Encoder API 2019-10-19 18:29:27 +09:00