Thomas Pelletier
0dad1a950c
Import Unmarshal tests (not passing)
2021-02-10 10:41:34 -05:00
Thomas Pelletier
27f0aeee30
Import localtime
2021-02-10 10:41:23 -05:00
Thomas Pelletier
721fa81f2e
Support numbers
2021-02-10 10:00:08 -05:00
Thomas Pelletier
f6a13d6e05
wip numbers
2021-02-09 20:44:54 -05:00
Thomas Pelletier
2660bb8426
Test inline tables
2021-02-09 19:36:14 -05:00
Thomas Pelletier
84282bbfd3
Move parser code
2021-02-09 19:26:50 -05:00
Thomas Pelletier
0982fd5f1f
Check unhandled error
2021-02-09 19:23:45 -05:00
Thomas Pelletier
7dbf7554c4
Nested arrays
2021-02-09 19:23:10 -05:00
Thomas Pelletier
2790964270
Bool value
2021-02-08 20:44:23 -05:00
Thomas Pelletier
3488a91eff
Array values
2021-02-08 20:39:04 -05:00
Thomas Pelletier
0e8fd64203
Move tests out of the package
2021-02-08 09:18:42 -05:00
Thomas Pelletier
70d41bd750
Add more tests for unmarshal array tables
2021-02-08 09:16:26 -05:00
Thomas Pelletier
a197513ce7
Simple table array
2021-02-08 09:08:42 -05:00
Thomas Pelletier
bd8df24646
Parse tables
2021-02-07 18:30:33 -05:00
Thomas Pelletier
89052d60b4
Very beginning of unmarshaler + builder interface
2021-02-06 23:20:26 -05:00
Thomas Pelletier
9fa2fd413d
Implement inline tables
2021-02-06 09:33:20 -05:00
Thomas Pelletier
b1e11f82a9
Implement array values
2021-02-06 09:27:24 -05:00
Thomas Pelletier
165f65408d
Implement tables
2021-02-06 09:09:41 -05:00
Thomas Pelletier
540c2a7b59
Fix parsing bugs + boolean impl
2021-02-06 08:54:40 -05:00
Thomas Pelletier
a466f0ca79
Multiline literal strings
2021-02-06 08:01:38 -05:00
Thomas Pelletier
736a75748b
Multiline basic string parsing
2021-02-05 17:46:40 -05:00
Thomas Pelletier
ca12c0670d
wip parsing
2021-02-05 14:48:16 -05:00
Thomas Pelletier
0ee0fe7f7c
Trying the scanner approach
2021-02-04 10:14:11 -05:00
Thomas Pelletier
b123c357c5
Add tokens to Document
2021-02-02 20:54:20 -05:00
Thomas Pelletier
94ad175728
wip
2021-02-02 10:55:23 -05:00
Thomas Pelletier
1e8b0dc3c9
Rename to lexer and split in files
2021-02-02 08:28:30 -05:00
Thomas Pelletier
7300b6a97b
Array tables
2021-02-02 08:19:04 -05:00
Thomas Pelletier
aae4656c64
Standard Table
2021-02-01 22:03:53 -05:00
Thomas Pelletier
44f7a7aead
Inline tables
2021-02-01 21:41:34 -05:00
Thomas Pelletier
bac65cc530
Array implementation
2021-02-01 21:25:20 -05:00
Thomas Pelletier
91d7afbc0a
Parse rvalue string
2021-02-01 20:54:04 -05:00
Thomas Pelletier
7b4d82a939
Remove error handling for rune
2021-02-01 20:25:31 -05:00
Thomas Pelletier
2ab0f8c733
Default to use bytes instead of runes
...
benchmark old ns/op new ns/op delta
BenchmarkParseAll-8 3238 1941 -40.06%
2021-02-01 20:20:24 -05:00
Thomas Pelletier
b96c535061
Check for allocs
2021-02-01 19:25:07 -05:00
Thomas Pelletier
fd961100c1
Boolean values
2021-02-01 19:19:40 -05:00
Thomas Pelletier
1c7e9fe3af
Dotted keys
2021-02-01 19:07:51 -05:00
Thomas Pelletier
07aa85ea0b
Refactor to use parser state
2021-02-01 09:00:36 -05:00
Thomas Pelletier
d54ad15d16
Track ABNF file
2021-02-01 09:00:21 -05:00
Thomas Pelletier
abe1005d7a
wip: string parsing
2021-01-30 20:31:14 -05:00
Thomas Pelletier
b4bb91fc13
test
2021-01-30 09:07:55 -05:00
Vincent Serpoul
c9a09d8695
Provide Tree and treeValue public aliases ( #467 )
...
Provide public aliases for Tree and treeValue to give more
control when manipulating TOML documents. This is a stop-gap
measure until we redesign the interface in v2.
Fix #466
2021-01-29 08:31:09 -05:00
y-yagi
3430b0f086
Update docs to reference pkg.go.dev ( #465 )
2021-01-25 08:31:50 -05:00
Richard Patel
a713a3eccc
Improved default tag for durations ( #464 )
2021-01-21 16:47:51 -05:00
Thomas Pelletier
652b9f8232
Cleanup ( #462 )
...
* Remove feature request template
Those should now start in discussions
https://github.com/pelletier/go-toml/discussions
* Update lincese year
* ci: do not run coverage on master
It only makes sense to report it for diffs on pull requests.
2021-01-06 20:48:20 -05:00
Thomas Pelletier
ba1b12be14
Fix ToMap for tables in nested mixed-type arrays ( #461 )
...
Co-authored-by: Micah Stetson <micah@schoolsplp.com >
2021-01-06 20:34:25 -05:00
Stanisław Barzowski
2e01f733df
[README] There are 3 cli tools, not 2. ( #454 )
2020-11-24 13:14:26 -05:00
Micah Stetson
1bd9461acb
Fix ToMap for tables in mixed-type arrays ( #453 )
2020-11-14 21:15:35 -05:00
Thomas Pelletier
5b4e7e5dcc
Remove underscore regexps ( #448 )
...
* Remove underscore regexps
Fixes #440 .
```
benchmark old ns/op new ns/op delta
BenchmarkUnmarshalToml-8 269582 257032 -4.66%
benchmark old allocs new allocs delta
BenchmarkUnmarshalToml-8 2650 2650 +0.00%
benchmark old bytes new bytes delta
BenchmarkUnmarshalToml-8 127761 127030 -0.57%
```
2020-10-11 19:27:08 -04:00
Thomas Pelletier
b4905040a8
TOML 1.0.0-rc.3 ( #449 )
...
No spec change since 1.0.0-rc.1.
2020-10-11 16:12:23 -04:00
Thomas Pelletier
5c66c78bc5
Remove date regexp ( #447 )
...
* Remove date regexp
Hand-roll the date matching logic to avoid trying to match a regexp on
every integer.
```
benchmark old ns/op new ns/op delta
BenchmarkUnmarshalToml-8 293449 272134 -7.26%
benchmark old allocs new allocs delta
BenchmarkUnmarshalToml-8 2746 2650 -3.50%
benchmark old bytes new bytes delta
BenchmarkUnmarshalToml-8 133604 127548 -4.53%
```
* Remove fuzzit
The company has been acquired by GitLab and shutting down.
2020-10-11 15:31:33 -04:00