unknwon
5cf43420b0
Disable Go module and import path enforcement
2019-08-04 23:44:58 -07:00
unknwon
8f3156dadd
ci: skip install
2019-08-04 13:14:36 -07:00
unknwon
39a1505cbc
Bump version
v1.45.0
2019-08-04 13:13:54 -07:00
Yoan Blanc and ᴊ. ᴄʜᴇɴ
bc28565606
struct: support for *bool ( #200 )
...
* struct: support for *bool
Signed-off-by: Yoan Blanc <yoan@dosimple.ch >
* simplify
Signed-off-by: Yoan Blanc <yoan@dosimple.ch >
2019-08-04 13:11:45 -07:00
unknwon
269335d44f
README: quick help about Go modules
...
[ci skip]
2019-08-03 22:56:56 -07:00
unknwon
9a04224798
README: quick help about Go modules
...
[ci skip]
2019-08-03 22:54:34 -07:00
unknwon
7a842c6f35
README: update
...
[ci skip]
2019-08-03 20:18:41 -07:00
unknwon
a7193e3188
ini: enforce canonical import path
v1.44.2
2019-08-03 19:48:27 -07:00
unknwon
27a23941b3
Bump version
v1.44.1
2019-08-03 19:39:54 -07:00
unknwon
bb0c6f03a1
Enable Go Modules
2019-08-03 19:20:44 -07:00
Unknwon
8659100d2d
struct: reflect slice elements to shadows when 'allowShadow' tag is presented ( #196 )
v1.44.0
2019-07-06 22:25:57 -07:00
Unknwon
2d4014bce1
parser: remove unnecessary new variable
...
Related to #194
v1.43.1
2019-07-06 20:31:29 -07:00
Shahms King and 无闻
1ed38061d4
parser: support Python multi-line values with empty first line ( #194 )
2019-07-06 20:12:30 -07:00
Unknwon
2b9e6cf7b5
Bump version
v1.43.0
2019-07-06 19:50:44 -07:00
Jonathan Pentecost and 无闻
a7e2a0b584
struct: map into fields that are struct pointers ( #189 )
...
Allow 'mapTo' to load into fields that are struct pointers iff there is
a section for that field and fieldname. The field is initialised to
pointer type and then the data is loaded.
Fixed a spelling mistake.
2019-07-06 19:48:34 -07:00
Unknwon
3be5ad479f
section: misc fix
...
[ci skip]
2019-03-26 22:48:45 -04:00
Unknwon
7ff51274eb
ci: add Go 1.12
2019-03-26 19:56:59 -04:00
Unknwon
d79353dad8
*: fix golint complaints
2019-03-26 19:30:17 -04:00
Unknwon
ece0e89bb0
*: refactor constants to use camelcase
2019-02-17 14:54:15 -05:00
Unknwon
7c1c4f765b
parser: pass file options at parser creation
...
To avoid passing same values for every readValue call.
2019-02-17 14:53:13 -05:00
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