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
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
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
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
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
家福
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
taobig
3fa8c5940d
fix: The validation of tag "options" is not working with int/uint type ( #1969 )
3 years ago
Kevin Wan
b94b68a427
chore: refactoring mapping string to slice ( #1959 )
3 years ago
家福
07145b210e
fix: panic on convert to string on fillSliceFromString() ( #1951 )
...
* Update unmarshaler.go
fix: 修复fillSliceFromString()方法中mapValue 强转string后的panic 错误
* test: 增加单元测试
增加单元测试
* Update unmarshaler_test.go
3 years ago
Kevin Wan
ecc3653d44
fix #1729 ( #1783 )
3 years ago
Kevin Wan
50de01fb49
feat: add httpc.Do & httpc.Service.Do ( #1775 )
...
* backup
* backup
* backup
* feat: add httpc.Do & httpc.Service.Do
* fix: not using strings.Cut, it's from Go 1.18
* chore: remove redudant code
* feat: httpc.Do finished
* chore: fix reviewdog
* chore: break loop if found
* add more tests
3 years ago
Kevin Wan
e9620c8c05
chore: refactor code ( #1708 )
3 years ago
aimuz
70e51bb352
fix: empty slice are set to nil ( #1702 )
...
support for empty slce, Same behavior as json.Unmarshal
3 years ago
Kevin Wan
fdc7f64d6f
chore: update unauthorized callback calling order ( #1469 )
...
* chore: update unauthorized callback calling order
* chore: add comments
3 years ago
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
3 years ago
Kevin Wan
23deaf50e6
feat: support array in default and options tags ( #1386 )
...
* feat: support array in default and options tags
* feat: ignore spaces in tags
* test: add more tests
3 years ago
Kevin Wan
a7a6753118
fixes #1257 ( #1271 )
...
* fixes #1257
* chore: format code
* test: add more tests
3 years ago
Kevin Wan
69935c1ba3
refactor goctl, fix golint issues ( #903 )
3 years ago
市民233
0b0406f41a
fix: 解决golint 部分警告 ( #897 )
...
* feat: 解决goreportcard的警报
ps: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
* feat: 优化golint警告,将processFieldPrimitiveWithJsonNumber 改成 processFieldPrimitiveWithJSONNumber
unmarshaler.go:248:23: method processFieldPrimitiveWithJsonNumber should be processFieldPrimitiveWithJSONNumber
* feat: 添加 WithCanonicalKeyFunc 注释
* feat: 添加DisableStat的注释
* feat: 添加 RegisterGoctlHome 注释
* feat: 添加 PostgreSqlJoin 注释
* feat: 解决goline警告should not use basic type string as key in context.WithValue问题
* feat: 解决golint警告信息: should not use basic type string as key in context.WithValue
* fix: 定义自定义字段类型,导致go test fail 问题
* update: 恢复原有测试用例
* fix golint warning
3 years ago
Kevin Wan
e024aebb66
fix golint issues ( #899 )
3 years ago
Kevin Wan
54d57c7d4b
refactor rest code ( #895 )
3 years ago
voidint
28a7c9d38f
fix http header binding failure bug #885 ( #887 )
3 years ago
Kevin Wan
9ccb997ed8
refactor mapping ( #782 )
3 years ago
skykiss
01c92a6bc5
fix: Fix problems with non support for multidimensional arrays and basic type pointer arrays ( #778 )
...
Co-authored-by: shaoqian <shaoqian.zhang@appshahe.com>
3 years ago
Kevin Wan
334ee4213f
fix golint issues in core/mapping ( #497 )
4 years ago
Kevin Wan
38abfb80ed
fix gocyclo warnings ( #468 )
4 years ago
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
4 years ago
kevin
e5d7c3ab04
unmarshal should be struct
4 years ago
kevin
92e60a5777
use options instead of opts in error message
4 years ago
kevin
0a7e0cce77
update package reference
4 years ago
kevin
7e3a369a8f
initial import
4 years ago