Commit Graph

33 Commits

Author SHA1 Message Date
Masaaki Goshima 377d0b0dfc Move error types to internal/errors package 2021-03-15 13:53:24 +09:00
Masaaki Goshima c75b9e57e2 Fix encoding of nested map 2021-03-15 13:29:08 +09:00
Masaaki Goshima 4cdbd4e962 Remove unnecessary code 2021-03-12 00:43:48 +09:00
Masaaki Goshima 4167aefe08 Fix any bugs of encoder
- fix some issues ( #104 #118 #144 #147 )
- fix recursive call operation
- use json.Number of encoding/json
- fix encoding of MarshalJSON and MarshalText
- fix pointer operation
- remove 'anonymous' and 'only' operation
- add test cases for array/slice/map/marshaler
2021-03-11 19:29:35 +09:00
Masaaki Goshima f7b1319735 Integrate int/int8/int16/int32/int64 and uint/uint8/uint16/uint32/uint64 operation to reduce memory usage at compile 2021-02-19 15:12:30 +09:00
Masaaki Goshima ddc486cc62 Add opcode for bool type to the encoder 2021-02-15 12:57:43 +09:00
Masaaki Goshima 72765ed523 Add StructField operation for ptr type 2021-02-15 11:31:49 +09:00
Masaaki Goshima 04da39a443 Fix error message 2021-02-01 12:01:56 +09:00
Masaaki Goshima 48b6fe21c6 Fix race error 2021-02-01 11:36:41 +09:00
Masaaki Goshima 61e533dca2 Refactor encoder 2021-01-31 22:45:59 +09:00
Masaaki Goshima 84c8b84671 Fix encoding of type which implemented MarshalJSON 2021-01-30 01:14:22 +09:00
Masaaki Goshima 02797daba4 Optimize map operation 2021-01-25 13:10:07 +09:00
Masaaki Goshima 689587cd72 Fix indent encoding 2021-01-25 00:06:16 +09:00
Masaaki Goshima 75f34df1c6 Fix interface operation 2021-01-24 23:27:23 +09:00
Masaaki Goshima 399354d64d Fix encoding runner interface 2021-01-24 15:17:39 +09:00
Masaaki Goshima bf5220c3fb Fix struct end operation 2021-01-22 20:06:20 +09:00
Masaaki Goshima d59cdefc1d Add StructFieldOmitEmptyStringPtr 2021-01-22 18:19:54 +09:00
Masaaki Goshima d933310ad4 Keep reference value while encoding by MarshalJSON 2021-01-22 16:28:12 +09:00
Masaaki Goshima 305e858ea1 Fix encoding with nil pointer type of implementing MarshalJSON 2021-01-22 13:28:33 +09:00
Masaaki Goshima d859255868 Add test cases for string type 2021-01-21 00:22:20 +09:00
Masaaki Goshima d1cfcb0450 Add test cases for float32/float64 type 2021-01-19 20:41:14 +09:00
Masaaki Goshima 9c6aff7317 Add test cases for unsigned integer types 2021-01-19 14:54:27 +09:00
Masaaki Goshima 5eaa3c023c Add test cases for int64 type 2021-01-18 22:35:10 +09:00
Masaaki Goshima 861236119a Add test cases for int32 type 2021-01-18 21:50:52 +09:00
Masaaki Goshima a5c43958f9 Add test cases for int16 type 2021-01-17 22:06:16 +09:00
Masaaki Goshima 87882a9111 Sort operation 2021-01-17 15:49:34 +09:00
Masaaki Goshima e9efe2fced Add test cases for int8 type 2021-01-17 02:53:54 +09:00
Masaaki Goshima 67a7ac450b Add test cases for int type 2021-01-14 00:02:58 +09:00
Masaaki Goshima fd1085102c Fix opcode for end of omitempty int type 2021-01-13 00:14:46 +09:00
Masaaki Goshima 8ab0aa7168 Add test cases of omitempty/string tag for int type 2021-01-12 02:40:12 +09:00
Masaaki Goshima 135a3c0cfb Use NoEscapedString 2021-01-11 19:47:33 +09:00
Masaaki Goshima 4cfb919183 Remove indent optype 2021-01-11 19:05:06 +09:00
Masaaki Goshima 06906637f2 Reduce memory usage at compile 2021-01-11 05:16:37 +09:00