28 Commits
Author SHA1 Message Date
89efed6562 key: apply ValueMapper to substituted reference values (#382)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 21:44:05 -04:00
ᴊᴏᴇ ᴄʜᴇɴandGitHub 54a0ff78ec chore: enable Go modules and modernize CI (#374) 2026-01-10 13:39:55 -05:00
Joe ChenandGitHub 39f9e49bca key: ignore empty values in ValueWithShadows (#316) 2022-02-10 18:18:52 +08:00
fcd6cc399e Return an empty array from ValueWithShadows if there is none (#313)
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-01-20 16:38:35 +08:00
Drayton MunsterandGitHub 326d24fbbe key: add AllowDuplicateShadowValues option (#298) 2021-09-07 11:41:39 +08:00
ᴜɴᴋɴᴡᴏɴandGitHub f8a14abc12 ci: update GitHub Actions (#296) 2021-09-04 14:03:50 +08:00
bdfaee2a78 refactor: optimize repetitive parsing code (#233)
Co-authored-by: 林通 <lintong@datacloak.com.cn>
2020-03-31 18:03:22 +08:00
Unknwon 2e33564b44 key: fix panic when recursive value has missing target (#191) 2019-10-17 18:13:53 -07:00
unknwon 86335412cb key: deduplicate shadows while adding (#207) 2019-09-22 22:54:29 -07:00
JeffasandJiahua Chen e2da38cefe {key, struct}: add support for []bool (#206) 2019-09-18 17:10:38 -07:00
Unknwon d79353dad8 *: fix golint complaints 2019-03-26 19:30:17 -04:00
Unknwon ece0e89bb0 *: refactor constants to use camelcase 2019-02-17 14:54:15 -05:00
DPand无闻 f841668f03 key: support parsing hex number (#178)
* parse hex number on map to struct

* pasre hex number on slice int

* add test case
fix: Key().Int() use ParseInt instead of Atoi

* testcase move to L183

* fix names
2019-01-03 09:51:06 +08:00
Garner Fox McCloudand无闻 a9da9309fb key: fix recursive char stripping when parsing recursive values (#177) 2018-12-22 09:53:20 -05:00
Unknwon 32e4c1e6bc key: support nested values (#131)
Docs: http://docs.aws.amazon.com/cli/latest/topic/config-vars.html#nested-values
2017-11-19 00:34:21 -05:00
Alexandre Pauziesand无闻 fa898e883e key: keys should not consider themselves for recursion read (#130) 2017-11-13 19:45:16 -05:00
Unknwon 7006dbe48c TESTING: improve overall code quality 2017-10-23 06:27:56 -04:00
Unknwon 5b3e00af70 Bump version 2017-10-14 17:05:30 -04:00
Adam Tauberand无闻 696b7e6429 key: escape delimiters in string slice values (#116)
* Escape delimiters in string slice values

Fixes #32

* [enh] add test
2017-10-14 17:03:21 -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 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 a2610b3a79 #53 support boolean type key 2016-08-16 21:45:43 -07:00
Hanno Heckerand无闻 bb0ba728b1 add value expander (#35)
* add value expander

* cosmetic fixes
2016-08-11 07:17:51 -07:00
Unknwon e0f460c8b6 #45 Must... methods assign default value when void 2016-06-30 00:25:09 +08:00
Unknwon f461e76789 Reorganize files and change behavior of pretty format 2016-02-20 01:16:12 -05:00