Commit Graph
313 Commits
Author SHA1 Message Date
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
Unknwon 9144852efb #61 fix struct check with time.Time v1.19.1 2016-08-05 13:04:04 -07:00
Unknwon 088ac83a7d #60 minor fix and update docs v1.19.0 2016-08-05 11:03:21 -07:00
Radek Simkoand无闻 8e15fc6d72 Add support for omitempty tag option (#60) 2016-08-05 10:45:33 -07:00
Unknwon cf53f9204d Fix Go1.4 backward compatibility v1.18.0 2016-07-09 01:31:50 +08:00
Unknwon 959d90aa69 #48 support more slice types when MapTo/ReflectFrom struct
This allows int, int64, uint, uint64 and float64 to be slice element type.
2016-07-09 00:38:25 +08:00
Unknwon 927d8d7ced Update README [CI SKIP] 2016-07-02 17:56:45 +08:00
Unknwon d84ec27dc1 #44 add load option to ignore continuation lines v1.17.0 2016-07-02 17:26:46 +08:00
Unknwon a219cd2c4f Go1.4 compatibility v1.16.1 2016-06-30 04:59:49 +08:00
Unknwon 911580e203 #46 Bump version v1.16.0 2016-06-30 04:48:53 +08:00
Ian Campbelland无闻 9831c78f04 Match last ] in line when parsing Section header (#46)
I have a config.ini where section names can contain "]", which leads to parse
errors. While proper support for quoting would be best (issue #32) simply
matching the last "]" rather than the first helps in this case.
2016-06-30 04:45:38 +08:00
Unknwon e0f460c8b6 #45 Must... methods assign default value when void v1.15.0 2016-06-30 00:25:09 +08:00
Unknwon a2614a51e8 update travis script v1.14.0 2016-06-29 20:31:17 +08:00
Unknwon 2cd302aa78 #36 support case insensitive load
- Use Travis CI
2016-06-29 20:27:58 +08:00
Unknwon 81d9577135 #55 add test case v1.13.0 2016-06-27 15:52:30 +08:00
ryakaand无闻 128f6e4f9e Fix panic from incorrect alignment length calculation (#55)
The alignment length calculation did not take into account that
keys may be added to if they contained "\"", "=", ":", or "`".

This gave an under calculation and resulted in index out of
bounds when this happened to be the longest key.
2016-06-27 15:42:28 +08:00
Andrii Loshkovskyiand无闻 1dc62999c1 Fix calls for KeysHash() in README files (#42) 2016-06-27 05:08:58 +08:00
Unknwon 72ba3e6b9e #52 bump version and docs v1.12.0 2016-06-01 12:11:21 -07:00
AT1012andUnknwon d291594290 Retrieve parent keys accessible from a child section (#52)
Retrieve parent keys available to a child section
2016-06-01 12:00:29 -07:00
Unknwon 12f418cc7e Bump version v1.11.0 2016-03-21 19:18:31 -04:00
Unknwon f4b7b2c842 Merge pull request #38 from nextrevision/default-header
Add support for explicitly writing a header in the DEFAULT section
2016-03-21 19:16:42 -04:00
nextrevision 30c8783cfe Add support for explicitly writing a header in the DEFAULT section 2016-03-21 16:41:28 -04:00