Kevin Wan
1e717f9f5c
feat: add toml config ( #1899 )
3 years ago
Kevin Wan
cb4fcf2c6c
fix marshal ptr in httpc ( #1789 )
...
* fix marshal ptr in httpc
* add more tests
* add more tests
* add more tests
* fix issue on options and optional both provided
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
e0454138e0
update goctl to go 1.16 for io/fs usage ( #1571 )
...
* update goctl to go 1.16 for io/fs usage
* feat: support pg serial type for auto_increment (#1563 )
* add correct example for pg's url
* 🐞 fix: merge
* 🐞 fix: pg default port
* ✨ feat: support serial type
Co-authored-by: kurimi1 <d0n41df@gmail.com>
* chore: format code
Co-authored-by: toutou_o <33993460+kurimi1@users.noreply.github.com>
Co-authored-by: kurimi1 <d0n41df@gmail.com>
3 years ago
chenquan
1993faf2f8
fix: fix a typo ( #1522 )
...
Signed-off-by: chenquan <chenquan.dev@foxmail.com>
3 years ago
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
3 years ago
chenquan
05cc62f5ff
chore: optimize yaml unmarshaler ( #1513 )
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
cd289465fd
chore: coding style and comments ( #1361 )
...
* chore: coding style and comments
* chore: optimize `ParseJsonBody` (#1353 )
* chore: optimize `ParseJsonBody`
* chore: optimize `ParseJsonBody`
* fix: fix a test
* chore: optimize `ParseJsonBody`
* fix a test
* chore: add comment
* chore: refactor
Co-authored-by: chenquan <chenquan.dev@foxmail.com>
3 years ago
chenquan
263e426ae1
chore: optimize `ParseJsonBody` ( #1353 )
...
* chore: optimize `ParseJsonBody`
* chore: optimize `ParseJsonBody`
* fix: fix a test
* chore: optimize `ParseJsonBody`
* fix a test
* chore: add comment
3 years ago
Kevin Wan
a7a6753118
fixes #1257 ( #1271 )
...
* fixes #1257
* chore: format code
* test: add more tests
3 years ago
Kevin Wan
265b1f2459
test: add more tests ( #1138 )
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
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
4 years ago
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
4 years ago
Kevin Wan
bbb4ce586f
fix golint issues ( #584 )
4 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 Wan
c435811479
fix gocyclo warnings ( #278 )
4 years ago
kevin
33a9db85c8
add unit test, fix interceptor bug
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