Commit Graph
205 Commits
Author SHA1 Message Date
Unknwon 2a59b714f3 Merge pull request #31 from lyobzik/exclude-errors-from-list
Exclude not parsed values from lists.
2016-02-07 11:14:00 -05:00
lyobzik 3799344101 Add list methods that return error on first invalid value. 2016-02-07 21:18:56 +06:00
lyobzik 86f857a3e6 Add list methods that exclude not parsed values from lists 2016-02-06 17:24:36 +06:00
lyobzik 6ba915f74f Comment what methods will do with invalid input. 2016-02-02 23:16:00 +06:00
lyobzik 789fc31c37 Revert "Exclude not parsed values from lists."
This reverts commit 3977ef18a1.
2016-02-02 22:29:19 +06:00
lyobzik 3977ef18a1 Exclude not parsed values from lists. 2016-01-23 00:02:55 +06:00
Unknwon afbd495e5a bump version v1.8.6 2016-01-06 18:56:16 +08:00
Unknwon 68e39cc83a Merge pull request #28 from woniu369/patch-1
Update ini.go
2016-01-06 18:50:46 +08:00
Unknwon 887c8d36f8 Merge pull request #30 from shawnps/patch-2
fix typos
2015-12-31 21:02:31 -05:00
Shawn Smith 73ede7750a fix typos 2015-12-31 14:32:56 +09:00
woniu369 c6b69ec22f Update ini.go 2015-12-21 17:39:27 +08:00
woniu369 1b4602ba4a Update ini.go 2015-12-21 03:17:26 +08:00
woniu369 b91200511e Update ini.go 2015-12-21 03:06:10 +08:00
Unknwon 6ec4abd8f8 add -t docs 2015-12-17 22:34:33 -05:00
Unknwon 467243bad6 README 2015-12-16 00:35:07 -05:00
Unknwon 77178f2269 bump version and make tag v1.8.5 2015-12-16 00:30:49 -05:00
Unknwon de765479a5 Merge pull request #26 from ahmetalpbalkan/bool-yn
Add `y`/`n` as options for BOOL values
2015-12-15 21:53:47 -05:00
Ahmet Alp Balkan 62f9a5e184 Add y/n as options for BOOL values
`y`/`n` are also used as boolean values sometimes, extending
the library to infer these values for parseBool as well.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2015-12-15 18:34:26 -08:00
Unknwon a4e5487f4a fix panic when have empty values 2015-12-11 16:51:11 -05:00
Unknwon 9314fb0ef6 fix default mapping error 2015-12-10 12:26:54 -05:00
Unknwon 9f4d2712cf fix #25 2015-12-07 23:17:02 -05:00
Unknwon 9cd12f2950 fix key hash not updated when call SetValue 2015-12-07 11:26:11 -05:00
Unknwon 65f8c74913 refactor parser 2015-12-06 01:34:00 -05:00
Unknwon 3c26913185 Merge pull request #24 from Timmmm/master
Better comments support
2015-12-03 13:22:36 -05:00
Tim Hutt 38496d948b Better comments support
This adds support for comments on the end of section headers, e.g.

    [a_section] ; A comment

It also fixes a couple of places where only `#` comments were supports - not `;` comments.

Test cases are included (they pass).
2015-12-03 14:40:47 +00:00
Unknwon 641bc9176a Merge pull request #22 from jds/v1
Make method name Section.HasKey match documentation.
2015-12-02 13:50:19 -05:00
Joe Strickler c680b35615 Minor documentation fix for Section.HasValue. 2015-12-02 11:25:55 -05:00
Joe Strickler ff54144c0a Makes method name Section.HasKey match documentation.
The previous name, Section.Haskey, has been kept for backwards compatibility.
2015-12-02 11:23:53 -05:00
Unknwon 03e0e7d51a #21 return nil when error occurs 2015-11-24 14:24:05 -05:00
Unknwon 8f40127895 fix typo 2015-11-23 15:00:42 -05:00
Unknwon 2e44421e25 minor fix for #20 2015-11-19 11:33:33 -05:00
Unknwon a1f20b4554 Merge pull request #20 from kuuyee/master
新增HasKey和HasValue方法,用来判断键或值是否存在。
2015-11-19 11:06:03 -05:00
kuuyee 3e16598f19 简化HasKey实现 2015-11-19 11:11:45 +08:00
kuuyee c9284e989c 更改HasKey实现,直接判断GetKey结构是否为nil 2015-11-19 05:11:14 +08:00
kuuyee 6ba470dbde 根据PR审查意见进行修正 2015-11-18 16:51:19 +08:00
kuuyee 23a9382beb 新增HasKey和HasValue方法,用来判断键或值是否存在。 2015-11-18 06:54:31 +08:00
Unknwon 060d7da055 docs 2015-11-04 20:00:20 -05:00
Unknwon 55063dda59 more test cases for #19 2015-11-04 19:56:46 -05:00
无闻 9123c74ef5 Merge pull request #19 from seastar-io/master
Add support for Uint types
2015-11-04 19:50:10 -05:00
Brian Shore 67da474c43 Add uint flavors for key.In*() methods 2015-11-05 00:35:34 +00:00
Brian Shore 18cc772ced Add support for Uint types 2015-11-04 23:52:40 +00:00
Unknwon aea5e9fd2e remove useless reslice 2015-10-08 09:31:02 -04:00
Unknwon 28c46efbdf close file after parsing 2015-10-05 00:58:44 -04:00
Unknwon df3ea05e1d work on #16 2015-10-02 10:54:18 -04:00
Unknwon a1b792071c Merge branch 'v1' of github.com:go-ini/ini into v1 2015-10-01 19:50:51 -04:00
Unknwon 851a752134 put tmp file in the same directory of filename 2015-10-01 19:50:46 -04:00
Unknwon 1d44d3ecb9 minor fix on #15 2015-09-30 15:34:58 -04:00
Unknwon 1e493a0661 work on #15 2015-09-29 17:08:35 -04:00
Unknwon fce4613bab Merge branch 'v1' of github.com:go-ini/ini into v1 2015-09-27 01:00:21 -04:00
Unknwon bf95b9db55 add validate key on the fly 2015-09-27 01:00:16 -04:00