Unknwon
8d6d08321b
file: support custom key-value delimiters ( #166 )
2018-10-14 19:40:43 -04:00
Unknwon
7b29465103
Bump version
v1.38.3
2018-09-30 13:34:52 -04:00
haroldHT and 无闻
5b4a947444
file: add DefaultFormat option around equal sign ( #164 )
...
Add option to have padding spaces around equal sign when PrettyFormat is disabled #161
eg:
> ini.PrettyFormat = false
> ini.DefaultFormatLeft = " "
> ini.DefaultFormatRight = " "
2018-09-30 13:33:52 -04:00
Unknwon
fa25069db3
README: add Go version requirement
...
[ci skip]
2018-09-10 15:26:01 -04:00
Unknwon
5cf292cae4
file: fix incorrect multiline comment handling when write out ( #157 )
v1.38.2
2018-08-18 19:46:59 +08:00
Pixdigit and 无闻
d58d458bec
ini: fix doc for ShadowLoad ( #154 )
2018-07-23 18:44:51 +08:00
Unknwon
358ee76639
section: fix s.keyHash not updated with data overwrite ( #149 )
v1.38.1
2018-07-12 21:10:51 +08:00
Unknwon
af26abd521
parser: support SkipUnrecognizableLines ( #150 )
v1.38.0
2018-07-11 21:03:03 +08:00
Unknwon
fa6ee696e4
ini: change minimum Go requirement to 1.6
2018-07-11 20:55:23 +08:00
Unknwon
cec2bdc490
README: update sourcegraph badge URL
...
[ci skip]
2018-06-15 08:35:39 +08:00
Unknwon
06f5f3d672
Bump version
v1.37.0
2018-05-27 06:45:42 +08:00
Anton Antonov and 无闻
7af1ffd45d
parser: support ignore inline comment ( #146 )
...
Edge case has a value that contains an inline symbol such as `;` or `#`.
Currently parsing a value such as:
```
value = val#ue
```
would result into just `val` if `IgnoreInlineComment` is false.
If `IgnoreInlineComment` is true it would result into the full value, but it's incorrect to depend on this.
With the fix value would be parsed as `val#ue`.
2018-05-27 06:39:42 +08:00
Unknwon
bda519ae5f
ci: correct coverage result
2018-04-20 11:00:25 -04:00
Unknwon
6529cf7c58
Bump version
v1.36.0
2018-04-20 10:56:02 -04:00
Anton Antonov and 无闻
ecf73439ed
ini: support Python multi-line values ( #145 )
...
* [GH-144] Support Python multi-line values
2018-04-20 10:53:26 -04:00
Unknwon
ace140f734
Bump version
v1.35.0
2018-04-12 18:04:31 -04:00
Jason L. Shiffer and 无闻
c51d513271
file: add Support for spaces around '=' w/o PrettyFormat ( #143 )
...
The default git config format is equivalent to PrettyFormat w/o
alignment (i.e. just spaces around '=') and SaveToIndent(..., "\t")
This patch allows for setting PrettyFormat=false and PrettySpaces=True
to achieve the same output as the git config default.
It is backwards compatible in that current use case output will not be
affected unless you specifically disable PrettyFormat AND enable
PrettySpaces.
2018-04-12 18:02:29 -04:00
Unknwon
5e9692864e
file: support multiline comments
v1.34.0
2018-04-02 20:54:27 -04:00
Unknwon
6ecc596bd7
README: remove ZH
2018-03-13 13:39:40 -04:00
Unknwon
9fe64db119
REMADE: remove docs
2018-03-13 11:21:16 -04:00
Unknwon
c0041090ca
README: new website online
2018-03-13 11:19:27 -04:00
Unknwon
6333e38ac2
file: use lock to secure concurrent operations on sections ( #135 )
v1.33.0
2018-03-08 04:54:59 -05:00
Unknwon
a76e4b8c9a
README: update docs for ShadowLoad ( #136 )
2018-03-06 06:20:24 -05:00
Unknwon
1d1add4bb9
struct_test: fix test cases for Go 1.10
...
Added Go 1.10 to CI.
2018-03-06 06:02:36 -05:00
carterjones and 无闻
e88632e2fb
MISC: remove trailing whitespace and add missing newline ( #133 )
2018-03-02 02:19:47 -05:00
Unknwon
32e4be5f41
*_test: use golden file for complex test output
2018-02-14 05:17:53 -05:00
Unknwon
32e4c1e6bc
key: support nested values ( #131 )
...
Docs: http://docs.aws.amazon.com/cli/latest/topic/config-vars.html#nested-values
v1.32.0
2017-11-19 00:34:21 -05:00
Unknwon
7e7da45132
key: add test for recursive values ( #130 )
v1.31.1
2017-11-13 20:13:26 -05:00
Alexandre Pauzies and 无闻
fa898e883e
key: keys should not consider themselves for recursion read ( #130 )
2017-11-13 19:45:16 -05:00
Unknwon
a343d9870e
ini: add load option UnescapeValueCommentSymbols ( #129 )
v1.31.0
2017-11-13 19:34:40 -05:00
Unknwon
f280b3ba51
{file, parser}: enforce default section name to lowercase with insentive load ( #125 )
v1.30.3
2017-10-26 14:46:43 -04:00
Luis Gustavo S. Barreto and 无闻
7ddae1ffd1
struct: fix integer overflow in time.Duration conversion ( #126 )
...
* Add specific test for time.Duration conversion
This test will fail on 32 bits system
* Fix integer overflow in time.Duration conversion
According to the Go documentation, a time.Duration is represented by
int64 nanoseconds count, so we need to cast to int64 to avoid integer
overflow in 32 bits systems.
2017-10-26 14:12:52 -04:00
Unknwon
f384f41079
CI: update script
...
Create directory before symbolic linking
2017-10-23 06:36:43 -04:00
Unknwon
92e442e290
CI: update script
...
Link import path
2017-10-23 06:34:40 -04:00
Unknwon
a0d9cad96d
CI: update script
2017-10-23 06:30:23 -04:00
Unknwon
7006dbe48c
TESTING: improve overall code quality
2017-10-23 06:27:56 -04:00
Unknwon
cd55d8d297
file: cut File-related code to its own file
2017-10-23 02:27:05 -04:00
Unknwon
5b3e00af70
Bump version
v1.30.0
2017-10-14 17:05:30 -04:00
Adam Tauber and 无闻
696b7e6429
key: escape delimiters in string slice values ( #116 )
...
* Escape delimiters in string slice values
Fixes #32
* [enh] add test
2017-10-14 17:03:21 -04:00
Unknwon
dd08f93220
license: update indeitfy information
...
Fixes #121
2017-10-14 05:21:18 -04:00
Unknwon
3321baafb1
struct: only return error in strict mode
v1.29.2
2017-10-14 05:18:21 -04:00
Peter Vaczi and 无闻
476f0ee051
struct: map slices in strict mode too ( #119 )
2017-10-14 05:14:50 -04:00
Unknwon
0f8cf1ac61
github: add issue and pull request templates
...
[CI SKIP]
2017-10-14 05:12:32 -04:00
Unknwon
496647f2d0
struct: support reflect/map comment tag
...
Closes #113
v1.29.1
2017-10-14 04:43:12 -04:00
Unknwon
2d365cea38
ci: update .travis.yml to add 1.9 and remove master
2017-10-14 04:22:13 -04:00
Unknwon
7a6f455dde
file: add load option UnescapeValueDoubleQuotes
...
Closes #110
v1.29.0
2017-10-14 04:16:35 -04:00
无闻
c787282c39
Remove Go 1.4 from .travis.yml
2017-08-13 01:22:30 -04:00
无闻
20b96f641a
Update .travis.yml
v1.28.2
2017-08-13 01:15:16 -04:00
Ethan Koenig and 无闻
8a83917a6a
Avoid using temp file during write ( #115 )
2017-08-13 01:12:34 -04:00
Unknwon
3d73f4b845
struct: detect regular struct that is not time.Time ( #108 )
v1.28.1
2017-06-27 19:12:24 -04:00