Thomas Pelletier
3175efb395
encode: fix commented table with comment ( #894 )
...
And updated README.
2023-08-29 08:46:34 -04:00
Thomas Pelletier
9dd7f1af78
encoder: add back the commented option ( #893 )
2023-08-28 14:29:26 -04:00
Andreas Deininger
fcd9179b7d
Fixes typos ( #849 )
2023-02-13 03:57:48 -08:00
Thomas Pelletier
e195b58fd0
Expose parser API as unstable ( #827 )
2022-11-09 16:12:39 -05:00
Erik Hartwig
db679df765
Typo in README.md fix ( #770 )
...
Change "document was not prevent in the target structure" to "document was not present in the target structure".
2022-05-09 18:46:46 +02:00
Thomas Pelletier
ed80712cb4
Copy version policy from v1
2022-04-28 11:55:39 -04:00
Thomas Pelletier
171a592663
Prepare repository for v2.0.0 ( #762 )
2022-04-27 21:29:16 -04:00
Thomas Pelletier
adacebd8c7
Update benchmarks in README ( #756 )
2022-04-10 22:24:19 -04:00
Thomas Pelletier
068279f13b
encode: respect stdlib rules for embedded structs ( #747 )
2022-04-07 19:51:09 -04:00
Thomas Pelletier
3f5d8a6b06
Mention removal of go-toml/query ( #736 )
...
Fixes #722
2022-01-07 18:58:33 -05:00
Thomas Pelletier
e83cf535f5
Decoder: rename SetStrict to DisallowUnknownFields ( #731 )
2022-01-02 14:32:34 -05:00
Thomas Pelletier
c3ba3ef97a
readme: add docker image
2022-01-01 09:53:14 -05:00
Thomas Pelletier
4807229e94
tomll: port to v2 ( #727 )
...
Fixes #721
2021-12-31 15:40:18 -05:00
Thomas Pelletier
d8ddc00c61
jsontoml: port to v2 ( #726 )
...
Fixes #719
2021-12-31 14:40:20 -05:00
Thomas Pelletier
82f8dad811
tomljson: port to v2 ( #725 )
2021-12-31 13:25:53 -05:00
Thomas Pelletier
d58eb50ebf
Doc: clarify errors returned by Decode ( #713 )
...
Fixes #625
2021-12-26 20:04:09 +01:00
Thomas Pelletier
535fc65c5f
Fix link in README
2021-12-26 19:49:35 +01:00
Thomas Pelletier
f158d7d278
Readme: document more differences with v1 ( #712 )
...
* Readme: document more changes with v1
Closes #552
2021-12-26 19:47:03 +01:00
Thomas Pelletier
bd5cba0b0b
Update benchmarks readme ( #630 )
...
* Fix ci.sh for new benchmarks
Nice + taskset are more stable on my machine. We want to excude non high-level
benchmarks. BurntSushi/toml now supports canada.toml.
* Update latest benchmarks in README
2021-10-15 19:53:40 -04:00
Thomas Pelletier
fa07960695
Add installation instructions ( #572 )
2021-07-27 18:12:44 -04:00
Thomas Pelletier
618f0181ac
AST Tweaks ( #551 )
...
* Use pointers instead of copying around ast.Node
Node is a 56B struct that is constantly in the hot path. Passing nodes
around by copy had a cost that started to add up. This change replaces
them by pointers. Using unsafe pointer arithmetic and converting
sibling/child indexes to relative offsets, it removes the need to carry
around a pointer to the root of the tree. This saves 8B per Node. This
space will be used to store an extra []byte slice to provide contextual
error handling on all nodes, including the ones whose data is different
than the raw input (for example: strings with escaped characters), while
staying under the size of a cache line.
* Remove conditional
* Add Raw to track range in data for parsed values
* Simplify reference tracking
2021-06-03 21:48:51 -04:00
Thomas Pelletier
f3bb20ea79
Benchmark marshal ( #550 )
2021-06-02 09:29:19 -04:00
Thomas Pelletier
b202375414
Add benchmarks results to readme ( #548 )
2021-06-01 09:10:17 -04:00
Thomas Pelletier
238a6fef7d
Add links to proper feedback channels
2021-05-15 08:55:07 -04:00
Thomas Pelletier
67852cf007
Clarify default struct tag being unsupported ( #543 )
...
Follow up to https://github.com/pelletier/go-toml/issues/542
2021-05-15 08:49:15 -04:00
Thomas Pelletier
45ea20024b
Readme ( #535 )
2021-05-08 17:03:51 -04:00
Thomas Pelletier
9b67e40640
decoder: strict mode ( #512 )
2021-04-20 21:26:22 -04:00
Thomas Pelletier
9e122af5fc
encoder: support multiline strings + local options
2021-04-10 17:58:37 -04:00
Thomas Pelletier
37714006b6
V2 Marshaler MVP ( #495 )
2021-04-08 10:07:29 -04:00
Thomas Pelletier
275e366c17
decoder: handle casting local date into time.Time
...
Refs #494
2021-04-08 08:00:31 -04:00
Thomas Pelletier
4a4c2c2a5f
Update readme
2021-03-31 09:15:33 -04:00
Thomas Pelletier
32da85ab11
Decoding error position tracking
2021-03-30 21:43:57 -04:00
Thomas Pelletier
cf288a51c5
Wip errors reporting
2021-03-30 10:59:35 -04:00
Thomas Pelletier
2ddbf6be6d
Implement duplicate and key types check
2021-03-29 10:45:50 -04:00
Thomas Pelletier
636a75f316
Import tomltestgen
...
Handful are failing.
2021-03-26 09:51:35 -04:00
Thomas Pelletier
0fcf06e374
Update todo
2021-03-25 20:49:27 -04:00
Thomas Pelletier
17299c937b
Update readme
2021-03-25 19:56:40 -04:00
Thomas Pelletier
dd5837651d
Support TextUnmarshaler
2021-03-24 21:02:02 -04:00
Thomas Pelletier
a0d031abec
Arrays support
2021-03-24 20:21:55 -04:00
Thomas Pelletier
a25f636a07
Add array support todo
2021-03-23 21:18:19 -04:00
Thomas Pelletier
d458ddf4d4
Add TODO
2021-03-23 09:45:12 -04:00
Thomas Pelletier
e78ccff9a4
Fix parsing integer 0
2021-03-23 09:02:48 -04:00
Thomas Pelletier
ac2d6e2030
Handle unmarshalling value to nil ptr.
2021-03-22 20:03:35 -04:00
Thomas Pelletier
fcc91f2618
Progress on date/times
2021-03-22 09:59:15 -04:00
Thomas Pelletier
ebffe6db83
Naive implementation of anonymous structs
2021-03-18 21:11:51 -04:00
Thomas Pelletier
3e8b8db786
Unmarshal into pointers
2021-03-18 20:02:32 -04:00
Thomas Pelletier
8957a768ef
Next stop: pointers
2021-03-18 19:52:11 -04:00
Thomas Pelletier
844c9093a2
Add todo
2021-03-15 09:50:01 -04:00
Thomas Pelletier
37d06dabcf
Unmarshal into maps
2021-03-15 09:49:10 -04:00
Thomas Pelletier
1718142ede
More todos in README
2021-03-15 09:04:54 -04:00