Commit Graph

89 Commits (5b622d6265ec2d28b55bd42d1f8f6cefcd9b0e9f)

Author SHA1 Message Date
Kevin Wan 6b4d0d89c0
chore: add more tests (#3324) 1 year ago
Kevin Wan 8b4382dcec
chore: add more tests (#3286) 2 years ago
Kevin Wan fa33329a44
chore: add more tests (#3282) 2 years ago
Kevin Wan 4a2a8d9e45
chore: add more tests (#3279) 2 years ago
Kevin Wan 7568674b2b
chore: use %q instead of %s for unmarshaling (#3163) 2 years ago
Kevin Wan 02357d2616
chore: make error message more readable (#3154) 2 years ago
guangwu 489d69f779
Add debug message on unmarshal errors (#3153) 2 years ago
Kevin Wan e13fd62d38
chore: coding style (#3106)
Co-authored-by: cong <zhangcong1992@gmail.com>
2 years ago
MarkJoyMa 2e6402f4b5
fix: fillDefault, handling of nested structs (#3072) 2 years ago
Kevin Wan 9c6b516bb8
fix: #3058 (#3059) 2 years ago
Kevin Wan 4cef2b412c
fix: avoid unmarshal panic with incorrect map keys #3002 (#3013) 2 years ago
anqiansong d40000d4b9 fix typo 2 years ago
kevin a972f400c6 fix: test failure 2 years ago
MarkJoyMa 7086fb6dda x 2 years ago
MarkJoyMa 142c46228b x 2 years ago
MarkJoyMa ba771f8ff1 add ut 2 years ago
MarkJoyMa f3cf891d4f feat: conf add FillDefault func 2 years ago
qiying.wang 148afcf1a7 chore: remove redundant prefix of "error: " in error creation 2 years ago
Kevin Wan 434973c206
fix: test failure (#2874) 2 years ago
Mikael 84f9863b63
only unmashal public variables (#2872)
* only unmashal public variables

* only unmashal public variables

* only unmashal public variables

* only unmashal public variables
2 years ago
Kevin Wan ae87114282
chore: change interface{} to any (#2818)
* chore: change interface{} to any

* chore: update goctl version to 1.5.0

* chore: update goctl deps
2 years ago
Kevin Wan c9b05ae07e
fix: mapping optional dep not canonicaled (#2807) 2 years ago
Kevin Wan 4d7fa08b0b
feat: support **struct in mapping (#2784)
* feat: support **struct in mapping

* chore: fix test failure
2 years ago
Kevin Wan 367afb544c
feat: support ptr of ptr of ... in mapping (#2779)
* feat: support ptr of ptr of ... in mapping

* feat: support ptr of ptr of time.Duration in mapping

* feat: support ptr of ptr of json.Number in mapping

* chore: improve setting in mapping

* feat: support ptr of ptr encoding.TextUnmarshaler in mapping

* chore: add more tests

* fix: string ptr

* chore: update tests
2 years ago
Kevin Wan bae061a67e
chore: add tests (#2778) 2 years ago
Kevin Wan 0b176e17ac
fix: #2576 (#2776) 2 years ago
Kevin Wan cf6c349118
fix: #2735 (#2736)
* fix: #2735

* chore: make error consistent
2 years ago
Kevin Wan affbcb5698
fix: camel cased key of map item in config (#2715)
* fix: camel cased key of map item in config

* fix: mapping anonymous problem

* fix: mapping anonymous problem

* chore: refactor

* chore: add more tests

* chore: refactor
2 years ago
Kevin Wan f76b976262
fix: #2684 (#2693) 2 years ago
Kevin Wan fdc57d07d7
fix: #2672 (#2681)
* fix: #2672

* chore: fix more cases

* chore: update deps

* chore: update deps

* chore: refactor

* chore: refactor

* chore: refactor
2 years ago
Kevin Wan dcfc9b79f1
feat: accept camelcase for config keys (#2651)
* feat: accept camelcase for config keys

* chore: refactor

* chore: refactor

* chore: add more tests

* chore: refactor

* fix: map elements of array
2 years ago
Kevin Wan 06fafd2153
feat: validate value in options for mapping (#2616) 2 years ago
Kevin Wan b562e940e7
feat: support bool for env tag (#2593) 2 years ago
Kevin Wan 69068cdaf0
feat: support env tag in config (#2577)
* feat: support env tag in config

* chore: add more tests

* chore: add more tests, add stringx.Join

* fix: test fail

* chore: remove print code

* chore: rename variable
2 years ago
Kevin Wan e3e08a7396
fix: inherit issue when parent after inherits (#2586)
* fix: inherit issue when parent after inherits

* chore: add more tests
2 years ago
Kevin Wan 1677a4dceb
feat: conf inherit (#2568)
* feat: add ValuerWithParent

* feat: make etcd config inherit from parents

* chore: add more tests

* chore: add more tests

* chore: add more comments

* chore: refactor

* chore: add more comments

* fix: fix duplicated code and refactor

* fix: remove unnecessary code

* fix: fix test case for removing print

* feat: support partial inherit
2 years ago
王哈哈 dac3600b53
Modify comment syntax error (#2572) 2 years ago
re-dylan 4d2a146733
typo(mapping): fix typo for key (#2548) 2 years ago
Kevin Wan f9beab1095
feat: support uuid.UUID in mapping (#2537) 2 years ago
Kevin Wan d4c9fd2aff
chore: add golangci-lint config file (#2519)
* chore: add golangci-lint config file

* chore: member alignment
2 years ago
Kevin Wan 773b59106b
chore: remove init if possible (#2485) 2 years ago
Halo aa2be0163a
fix: add more tests (#2473)
* chore: add string to map in httpx parse method

* feat: add httpx parse stringToMap method test

* fix: add more test
2 years ago
Kevin Wan ada2941e87
chore: sort methods (#2470) 2 years ago
Halo 05737f6519
feat: add string to map in httpx parse method (#2459)
* chore: add string to map in httpx parse method

* feat: add httpx parse stringToMap method test
2 years ago
Kevin Wan 1a6d7b3ef6
chore: gofumpt (#2439) 2 years ago
Kevin Wan a1466e1707
fix: range validation on mapping (#2317) 2 years ago
lowang-bh 1b477bbef9
improve: number range compare left and righ value (#2315)
Co-authored-by: wanglonghui7 <wanglonghui7@jd.com>
2 years ago
Kevin Wan 18035bd4d4
chore: refactor (#2085) 2 years ago
家福 f3b8fef34f
fix: type matching supports string to int (#2038)
* fix: type matching supports string to int

* feat: type matching supports string to int

Co-authored-by: 程家福 <chengjiafu@uniontech.com>
2 years ago
Kevin Wan 1d95e95cf8
chore: make methods consistent in signatures (#1971)
* chore: make methods consistent in signatures

* test: fix fails
3 years ago