Commit Graph
293 Commits
Author SHA1 Message Date
bdfaee2a78 refactor: optimize repetitive parsing code (#233)
Co-authored-by: 林通 <lintong@datacloak.com.cn>
2020-03-31 18:03:22 +08:00
8a3836d82d codecov: formalize coverage settings (#232)
Co-authored-by: Sourcegraph Bot <campaigns@sourcegraph.com>
2020-03-29 15:34:55 +08:00
cd59c6e8b9 codecov: set comment style (#231)
Co-authored-by: Sourcegraph Bot <campaigns@sourcegraph.com>
2020-03-28 16:22:06 +08:00
91a7cdb4a0 ci: migrate from Travis to GitHub Actions (#230)
* ci: migrate from Travis to GitHub Actions

* Setting up GOPATH

* Download dependencies

* Fix GOPATH

* Fix GOPATH

* Fix GOPATH

* Fix deps

* Damn it!

* ???

* Init Go mod

* Fix lint errors

* Fix failing tests on Windows

* Skip some tests on Windows

Co-authored-by: Sourcegraph Bot <campaigns@sourcegraph.com>
2020-03-28 14:26:37 +08:00
ᴜɴᴋɴᴡᴏɴandGitHub 09e0d86be8 Enable Codecov (#228) 2020-03-21 10:56:07 +08:00
ᴜɴᴋɴᴡᴏɴ 39bc4ddcb8 .travis: fix warnings v1.55.0 2020-03-15 20:54:19 +08:00
ᴜɴᴋɴᴡᴏɴ f54734858c ci: enable Go 1.14 2020-03-15 20:53:08 +08:00
ᴜɴᴋɴᴡᴏɴ efe974c381 *: clean up code and error message 2020-03-15 20:51:39 +08:00
aligatorandGitHub faf04e23c2 file: support non-unique sections (#220)
* Support for non unique sections. Enabled with the option AllowNonUniqueSections.

* Non unique section support for MapToStruct

* Non unique section support for section.MapTo

* implement ini.ReflectFrom() for non unique sections

* implement xyz.Section("xyz").ReflectFrom() for non unique sections

* Refactor suggested changes after review

* remove GetSectionCount

* do not initialize sectionList if NonUniqueSections are disabled

* add test for deleting all sections of the same name

* refactor mapAllTo

* refactor ReflectFrom

* fix some comments

* refactoring based on PR suggestions

* update DeleteSectionWithIndex error
2020-03-15 19:21:17 +08:00
8e0f5b3a15 file: customize output delimiter (#226)
* customization output delimiter

* rename KeyValueDelimitersOutput to KeyValueDelimiterOnWrite

* add test for writing with KeyValueDelimiterOnWrite

* bugfix: use '=' as the default delimiter on write

Co-authored-by: Chaliy Roman <cerebrum.ch@gmail.com>
v1.54.0
2020-03-07 22:35:44 +08:00
ᴜɴᴋɴᴡᴏɴandGitHub dd614b817b Create lsif.yml 2020-03-07 21:30:26 +08:00
ᴜɴᴋɴᴡᴏɴ 5ac7f104cd README: update docs
[CI SKIP]
2020-03-07 14:18:48 +08:00
ᴜɴᴋɴᴡᴏɴ 90207e2a6a ini: remove internal version v1.53.0 2020-03-07 14:15:30 +08:00
ᴜɴᴋɴᴡᴏɴ fbbb7987e5 data_source: support io.Reader 2020-03-07 14:13:37 +08:00
Joe Chen 32cf4f7e9c Bump version v1.52.0 2020-01-31 20:28:19 +08:00
ᴜɴᴋɴᴡᴏɴandGitHub 7d14fca8d2 struct: support StructReflector interface (#221)
* StructReflector

* struct: add unit tests

* struct: avoid using map in tests
2020-01-31 20:26:21 +08:00
UnknwonandGitHub 94291fffe2 Bump version v1.51.1 2019-12-25 10:25:40 +08:00
YangKianandUnknwon 6cde41423e struct: fix incompatibility error with older versions (#219)
* fix incompatibility error with older versions

* add a test to make sure fix unspport old version bug.

* fix incompatibility error with older versions
2019-12-25 10:24:32 +08:00
UnknwonandGitHub 6982260a37 Delete ISSUE_TEMPLATE.md
[SKIP CI]
2019-11-19 18:03:13 -08:00
UnknwonandGitHub 4c44b8b468 Update issue templates
[SKIP CI]
2019-11-19 18:02:47 -08:00
UnknwonandGitHub 87e589f491 Bump version v1.51.0 2019-11-09 13:43:49 -08:00
Jonathan StewmonandUnknwon d544aa9392 parser: support unmashalling to all basic type pointers (#214) 2019-11-09 13:32:47 -08:00
Unknwon 8ee0b78994 Bump version v1.50.0 2019-11-05 20:13:40 -08:00
0f135c99ab Large python style multiline value fix (#210)
* fixed mutliline value handling

* added debug messages

* modified regex to allow empty string after indent

* multiline value indentation is determined by first indented value line

* fixed Python-style multiline value support

* fixed it

* fixed it

* cleaned up debug code

* fixed imported package name for new test file

* reversed change

* fixed import

* made changes as requested by github reviewer

* fixed build error

* added test case for large values

* incorporated second round of comments

* fixed import to point to original repo

* made Debug option a function to allow custom implementation
made other changes as requested

* removed bogus import (added by GoLand)

* simplified debug function args

* made changes as requested

* fixed format error

* made requested changes


Co-authored-by: Joerg Reichelt <joreiche@cisco.com>
2019-11-05 20:12:48 -08:00
UnknwonandGitHub 53ef941065 README: change badges position 2019-11-02 20:03:45 -07:00
UnknwonandGitHub b04eef3b53 README: update cool badges 2019-11-02 01:15:10 -07:00
Unknwon 1eb383f13c Bump version v1.49.0 2019-10-17 18:14:14 -07:00
Unknwon 2e33564b44 key: fix panic when recursive value has missing target (#191) 2019-10-17 18:13:53 -07:00
Unknwon b19459e590 ci: add Go 1.13 2019-10-05 09:51:31 -07:00
unknwon 7007817597 Bump version v1.48.0 2019-09-22 23:11:19 -07:00
unknwon 86335412cb key: deduplicate shadows while adding (#207) 2019-09-22 22:54:29 -07:00
unknwon 6ba806069d Bump version v1.47.0 2019-09-18 17:15:19 -07:00
JeffasandJiahua Chen e2da38cefe {key, struct}: add support for []bool (#206) 2019-09-18 17:10:38 -07:00
unknwon 8fe474341f *: some move around 2019-08-06 22:36:05 -07:00
unknwon e145131f9c ini_test: add test case for #198 2019-08-06 00:00:55 -07:00
unknwon dd2c58e130 README: remove Go modules section
[ci skip]
2019-08-05 00:09:47 -07:00
unknwon d4cae42d39 Bump version v1.46.0 2019-08-04 23:45:50 -07:00
unknwon c4baf76d5c Merge branch 'v1' of github.com:go-ini/ini 2019-08-04 23:45:30 -07:00
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 Blancandᴊ. ᴄʜᴇɴ 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 c014d65cb0 Disable Go module for backwards compatibility
[ci skip]
2019-08-03 22:40:20 -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