Unknwon
c85607071c
Bump version
v1.42.0
2019-02-17 14:36:56 -05:00
drakkan and 无闻
8b99162dcd
parser: add option to preserve surrounded quote ( #182 )
2019-02-17 14:31:27 -05:00
Unknwon
6ed8d5f64c
Bump version
v1.41.0
2019-01-03 09:53:35 +08:00
DP and 无闻
f841668f03
key: support parsing hex number ( #178 )
...
* parse hex number on map to struct
* pasre hex number on slice int
* add test case
fix: Key().Int() use ParseInt instead of Atoi
* testcase move to L183
* fix names
2019-01-03 09:51:06 +08:00
Unknwon
c498c36b6f
Bump version
2018-12-22 09:55:11 -05:00
Garner Fox McCloud and 无闻
a9da9309fb
key: fix recursive char stripping when parsing recursive values ( #177 )
v1.40.0
2018-12-22 09:53:20 -05:00
Maxim Khitrov and 无闻
f580a806a6
section: update keysHash in DeleteKey ( #176 )
2018-12-15 18:41:51 -05:00
Unknwon
f55231ca73
struct: fix integer overflow in time.Duration conversion ( #175 )
v1.39.3
2018-12-10 23:59:31 -05:00
Unknwon
b194b0c75f
file: trim space for original comment before prepending ( #163 )
2018-12-03 22:41:56 -05:00
Unknwon
ffaaebdac6
parser: remove unreachable code ( #170 )
v1.39.2
v1.39.1
2018-12-02 19:56:02 -05:00
Unknwon
9c8236e659
ci: add Go 1.11.x
v1.39.0
2018-10-14 19:42:04 -04:00
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