Unknwon
f280b3ba51
{file, parser}: enforce default section name to lowercase with insentive load ( #125 )
2017-10-26 14:46:43 -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
2017-10-14 17:05:30 -04:00
Unknwon
3321baafb1
struct: only return error in strict mode
2017-10-14 05:18:21 -04:00
Unknwon
496647f2d0
struct: support reflect/map comment tag
...
Closes #113
2017-10-14 04:43:12 -04:00
Unknwon
7a6f455dde
file: add load option UnescapeValueDoubleQuotes
...
Closes #110
2017-10-14 04:16:35 -04:00
无闻
20b96f641a
Update .travis.yml
2017-08-13 01:15:16 -04:00
Ethan Koenig and 无闻
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 )
2017-06-27 19:12:24 -04:00
Unknwon
d3de07a94d
struct: add strict mode to MapTo series ( #96 )
2017-06-02 16:46:24 -04:00
Unknwon
4090f13a2c
struct: remove skipping 0 value for int types ( #103 )
2017-06-02 16:27:01 -04:00
lispking and 无闻
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 )
2017-05-18 04:52:39 -04:00
Unknwon
79f45f0fe8
parser: remove surrounding quotes for empty value ( #97 )
2017-05-18 04:42:24 -04:00
Unknwon
e7fea39b01
section: add ChildSections ( #95 )
...
Also added (*File).ChildSecions.
2017-03-28 11:39:02 -04:00
Unknwon
1730955e31
parser: add LoadOptions.IgnoreInlineComment ( #93 )
2017-03-15 17:01:39 -04:00
Unknwon
98c45284d6
struct: add more map to types with shadow ( #92 )
2017-03-13 21:37:52 -04:00
Unknwon
300e940a92
struct: support map to []int and []int64 ( #92 )
2017-03-13 00:11:30 -04:00
Unknwon
7e015cd18f
struct: support shadows for MapTo ( #92 )
...
Only works for []string type field.
2017-03-10 21:49:06 -05:00
Unknwon
74bdc99692
Add new function ShadowLoad
2017-02-22 06:10:43 -05:00
Unknwon
173c8ba8e6
key: able to write out shadows
2017-02-21 22:56:27 -05:00
Unknwon
6a67acc2cd
key: add shadow keys
2017-02-21 22:36:12 -05:00
Unknwon
e3c2d47c61
Add (*Section).NewBooleanKey method
...
Fixes #87
2017-01-23 04:11:46 -05:00
Unknwon
7680b38f53
Add error check for PR #77
2017-01-22 06:44:57 -05:00
Guido Serra and 无闻
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
2017-01-17 21:00:17 +08:00
Unknwon
6f66b0e091
Support for loading from io.ReadCloser
...
Closes #79
2016-12-21 07:03:40 -05:00
Unknwon
9a250b46b0
Minor fix and docs for PR #72
2016-12-21 06:44:06 -05:00
George Vilches and 无闻
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
Unknwon
da14cebb76
Hanlde BOM for UTF-16
2016-12-21 05:59:58 -05:00
Unknwon
6e4869b434
Bump version
2016-08-26 23:11:18 -07:00
Unknwon
a2610b3a79
#53 support boolean type key
2016-08-16 21:45:43 -07:00
Unknwon
cefc24de94
Bump version and add docs
2016-08-11 07:23:05 -07:00
Hanno Hecker and 无闻
bb0ba728b1
add value expander ( #35 )
...
* add value expander
* cosmetic fixes
2016-08-11 07:17:51 -07:00
Unknwon
6b91d32e11
Fix code consistency
2016-08-11 06:48:09 -07:00
Unknwon
9144852efb
#61 fix struct check with time.Time
2016-08-05 13:04:04 -07:00
Unknwon
088ac83a7d
#60 minor fix and update docs
2016-08-05 11:03:21 -07: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
d84ec27dc1
#44 add load option to ignore continuation lines
2016-07-02 17:26:46 +08:00
Unknwon
a219cd2c4f
Go1.4 compatibility
2016-06-30 04:59:49 +08:00
Unknwon
911580e203
#46 Bump version
2016-06-30 04:48:53 +08:00
Unknwon
e0f460c8b6
#45 Must... methods assign default value when void
2016-06-30 00:25:09 +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
2016-06-27 15:52:30 +08:00
ryaka and 无闻
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
Unknwon
72ba3e6b9e
#52 bump version and docs
2016-06-01 12:11:21 -07:00
Unknwon
12f418cc7e
Bump version
2016-03-21 19:18:31 -04:00
nextrevision
30c8783cfe
Add support for explicitly writing a header in the DEFAULT section
2016-03-21 16:41:28 -04:00
Unknwon
776aa739ce
#33 create default section for nonexistent files in loose mode
2016-02-22 18:24:41 -05:00