334 Commits
Author SHA1 Message Date
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 Vacziand无闻 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 Koenigand无闻 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
Unknwon d3de07a94d struct: add strict mode to MapTo series (#96) v1.28.0 2017-06-02 16:46:24 -04:00
Unknwon 4090f13a2c struct: remove skipping 0 value for int types (#103) v1.27.3 2017-06-02 16:27:01 -04:00
Unknwon afbc45e87f README: add usage of IgnoreInlineComment 2017-05-18 22:37:13 -04:00
lispkingand无闻 458858a8ce Support Indicate whether put a line between sections (#102) 2017-05-18 22:32:21 -04:00
Unknwon 36da989cdc ini: do not outout back quotes if IgnoreInlineComment enabled (#99) v1.27.2 2017-05-18 04:52:39 -04:00
Unknwon 79f45f0fe8 parser: remove surrounding quotes for empty value (#97) v1.27.1 2017-05-18 04:42:24 -04:00
Unknwon 9f4b4ba0b9 Fix README 2017-05-18 04:18:58 -04:00
Christian Hildebrando Herculesand无闻 b2ba6d00cf config file does not have GetKey directly (#100)
Section has GetKey function, and not config pointer directly.
2017-05-18 04:17:27 -04:00
Unknwon e7fea39b01 section: add ChildSections (#95)
Also added (*File).ChildSecions.
v1.27.0
2017-03-28 11:39:02 -04:00
Unknwon 1730955e31 parser: add LoadOptions.IgnoreInlineComment (#93) v1.26.0 2017-03-15 17:01:39 -04:00
Unknwon 98c45284d6 struct: add more map to types with shadow (#92) v1.25.5 2017-03-13 21:37:52 -04:00
Unknwon 300e940a92 struct: support map to []int and []int64 (#92) v1.25.4 2017-03-13 00:11:30 -04:00
Unknwon 7e015cd18f struct: support shadows for MapTo (#92)
Only works for []string type field.
v1.25.3
2017-03-10 21:49:06 -05:00
Unknwon c437d20015 test: add cases values include comment sign 2017-02-23 17:22:15 -05:00
Unknwon 74bdc99692 Add new function ShadowLoad v1.25.2 2017-02-22 06:10:43 -05:00
Unknwon 173c8ba8e6 key: able to write out shadows v1.25.1 2017-02-21 22:56:27 -05:00
Unknwon 6a67acc2cd key: add shadow keys v1.25.0 2017-02-21 22:36:12 -05:00
Unknwon ee900ca565 Fix CI error 2017-02-08 23:24:15 -05:00
Unknwon ce490a7c27 Add Sourcegraph badge 2017-02-08 23:10:28 -05:00
Unknwon e3c2d47c61 Add (*Section).NewBooleanKey method
Fixes #87
v1.24.0
2017-01-23 04:11:46 -05:00
Unknwon 7680b38f53 Add error check for PR #77 v1.23.2 2017-01-22 06:44:57 -05:00
Guido Serraand无闻 2ba7300c05 boolean keys do not get sanitised from the \n (#77)
* unit test to isolate the problem

* the error is not related to the comment, but simply that the key does not get sanitized...

* this fixes the \n issue, but highlights an error in the Writer

* correcting as well the WriteTo function

* unnecessary comment

* rebase and fix of the import
2017-01-22 06:40:42 -05:00
Unknwon 766e555c68 Detect reflect.Float32 in setWithProperType
Fixes #86
v1.23.1
2017-01-17 21:00:17 +08:00
Unknwon 6f66b0e091 Support for loading from io.ReadCloser
Closes #79
v1.23.0
2016-12-21 07:03:40 -05:00
Unknwon bc525925d9 Fix typo in README 2016-12-21 06:46:49 -05:00
Unknwon 9a250b46b0 Minor fix and docs for PR #72 v1.22.0 2016-12-21 06:44:06 -05:00
George Vilchesand无闻 4b84ed0055 Added support for unparseable sections. (#72)
* Added support for unparseable sections.

* Add write support for unparseable sections.

* Slightly changed test files to make test results clearer with tools/platforms that handle whitespace differently.
2016-12-21 06:26:37 -05:00
PuHsiu, Chiangand无闻 c2daada740 Fix example code about "Section" method in README. (#70)
Changes to be committed:
	modified:   README.md
	modified:   README_ZH.md
2016-12-21 06:06:59 -05:00
Unknwon 546515cc5a Minor fix for PR #69 2016-12-21 06:06:34 -05:00
PuHsiu, Chiangand无闻 9a9c851de9 Add description of "Comment" and show how to use # or ; in value. (#69)
Changes to be committed:
	modified:   README.md
	modified:   README_ZH.md
2016-12-21 06:02:23 -05:00
Unknwon da14cebb76 Hanlde BOM for UTF-16 2016-12-21 05:59:58 -05:00
Unknwon 2ba15ac2dc Add PrettyFormat docs to README 2016-11-19 22:10:36 -05:00
Unknwon 6e4869b434 Bump version v1.21.1 2016-08-26 23:11:18 -07:00
James Bowesand无闻 3e15c67543 Support omitempty in tags during MapTo (#65)
omitempty must be ignored when unmarshalling into a struct, so that the
key name is parsed correctly.
2016-08-26 19:59:36 -07:00
Unknwon a2610b3a79 #53 support boolean type key v1.21.0 2016-08-16 21:45:43 -07:00
Unknwon cefc24de94 Bump version and add docs v1.20.0 2016-08-11 07:23:05 -07:00
Hanno Heckerand无闻 bb0ba728b1 add value expander (#35)
* add value expander

* cosmetic fixes
2016-08-11 07:17:51 -07:00
Unknwon 6b91d32e11 Fix code consistency v1.19.2 2016-08-11 06:48:09 -07:00
Unknwon f4c8d0e8b3 #62 fix value zero (0) of uint cause misjudge as time.Duration 2016-08-11 06:41:25 -07:00