Xiaoju Jiang
413ee919e6
support custom maxBytes in API file ( #2822 )
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
chensy
8157e2118d
fix: replace goctl ExactValidArgs to MatchAll ( #2759 )
...
Co-authored-by: chenjieping <chenjieping@kezaihui.com>
2 years ago
Kevin Wan
ec7ac43948
chore: reorg imports ( #2745 )
...
* chore: reorg imports
* chore: format code
2 years ago
chowyu12
c4f8eca459
Feat update rootpkg ( #2718 )
...
* add go-grpc_opt and go_opt for grpc new command
* feat: remove log when disable log
* feat: remove repeat code
Co-authored-by: zhouyy <zhouyy@ickey.cn>
2 years ago
heyehang
a644ec7edd
feature : responses whit context ( #2637 )
2 years ago
chensy
20e659749a
fix: fix conflict with the import package name ( #2610 )
...
Co-authored-by: chenjieping <chenjieping@kezaihui.com>
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
王哈哈
dac3600b53
Modify comment syntax error ( #2572 )
2 years ago
foliet
799c118d95
feat(goctl): better generate the api code of typescript ( #2483 )
2 years ago
bensonfx
e7acadb15d
fix #2435 ( #2442 )
...
* feat: add color to debug (#2433 )
* fix header and path type ts gen
Co-authored-by: chen quan <chenquan.dev@gmail.com>
2 years ago
Kevin Wan
1a6d7b3ef6
chore: gofumpt ( #2439 )
2 years ago
MarkJoyMa
4c927624b0
fix goctl help message ( #2414 )
2 years ago
anqiansong
9581e8445a
fix: issue #2359 ( #2368 )
...
* Revert changes
* Unrap nested structure for doc code generation
* Revert changes
* Remove useless code
* Remove useless code
* Format code
2 years ago
Kevin Wan
d935c83a54
feat: support baggage propagation in httpc ( #2375 )
...
* feat: support baggage propagation in httpc
* chore: use go 1.16
* chore: use go 1.16
* chore: use go ^1.16
* chore: remove deprecated
2 years ago
anqiansong
ce638d26d9
Hidden java ( #2333 )
2 years ago
Zlx
9d6c8f67f5
generates nested types in doc ( #2201 )
...
Co-authored-by: Link_Zhao <Link_Zhao@epam.com>
2 years ago
Kevin Wan
d20d8324e7
fix : #2216 ( #2235 )
2 years ago
fisnone
685d14e662
fix:duplicate route check ( #2154 )
...
Co-authored-by: 黄志荣 <huangzhirong@shuinfo.com>
2 years ago
anqiansong
1b51d0ce82
fix: fix #2102 , #2108 ( #2131 )
...
* g4 code generation
* Update grammar
* g4 code generation
* fix #2108
* fix #2102
* Remove comments
2 years ago
anqiansong
9c448c64ef
Update api template ( #2172 )
2 years ago
杨圆建
bc85eaa9b1
fix: goctl genhandler duplicate rest/httpx & goctl genhandler template support custom import httpx package ( #2152 )
2 years ago
Kevin Wan
1c09db6d5d
chore: coding style ( #2120 )
2 years ago
Kevin Wan
97a171441d
chore: remove blank lines ( #2117 )
...
* chore: remove blank lines
* chore: refactor
2 years ago
虫子樱桃
725e6056e1
feat:`goctl model mongo ` add `easy` flag for easy declare. ( #2073 )
...
* fix:typo in readme.md
* feat:`goctl model mongo ` add `easy` flag to generate code with Auto generated CollectionName for easy declare.
* fix:`goctl api doc ` when referenced api file contains no route,will generate an empty markdown file.
* code: adjust code.
Co-authored-by: 虫子樱桃 <czyt@w.cn>
2 years ago
Kevin Wan
e0e3f97c7c
chore: refactor ( #2087 )
2 years ago
taobig
6a2d6786c6
remove legacy code ( #2086 )
2 years ago
taobig
bfd0869ee2
remove legacy code ( #2084 )
2 years ago
Kevin Wan
555c4ecd1a
fix: quickstart wrong package when go.mod exists in parent dir ( #2048 )
...
* chore: fix typo
* fix: quickstart in dir with go.mod
* fix: runner failed
* chore: refine code
* chore: simplify quickstart mono
2 years ago
anqiansong
93b3f5030f
chore: Add command desc & color commands ( #2013 )
...
* Add link & Color sub-commands
* Color sub-commands for unix-like OS
* Remove useless code
* Remove redundant dependency
2 years ago
MarkJoyMa
f2caf9237a
fix goctl api clone template fail ( #1990 )
2 years ago
Kevin Wan
c6e2b4a43a
chore: coding style for quickstart ( #1902 )
3 years ago
过客龙门
3ae874d75d
fix ts tpl ( #1879 )
3 years ago
anqiansong
5383e29ce6
feat: Replace cli to cobra ( #1855 )
...
* Replace cli
* Replace cli
* Replace cli
* Format code
* Add compare case
* Add compare case
* Add compare case
* Support go style flag
* Support go style flag
* Add test case
3 years ago
Kevin Wan
3bbc90ec24
refactor: move json related header vars to internal ( #1840 )
...
* refactor: move json related header vars to internal
* refactor: use header.ContentType
3 years ago
Kevin Wan
cef83efd4e
fix #1838 ( #1839 )
3 years ago
anqiansong
16c61c6657
chore: Embed unit test data ( #1812 )
...
* Embed unit test data
* Add testdata
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
305587aa81
fix: Fix issue #1810 ( #1811 )
...
* Fix #1810
* Remove go embed
* Format code
* Remove useless code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
fang duan
fadef0ccd9
goctl api new should given a service_name explictly ( #1688 )
3 years ago
fang duan
4382ec0e0d
show help when running goctl api without any flags ( #1678 )
...
close #1676
3 years ago
Fyn
ee88abce14
fix(goctl): api/new/api.tpl ( #1788 )
3 years ago
Fyn
6d9dfc08f9
feat(goctl): supports api multi-level importing ( #1747 )
...
* feat(goctl): supports api multi-level importing
Resolves : #1744
* fix(goctl): import-cycle, etc.
import-cycle will not be allowed
e.g., a.api -> b.api -> a.api
regular multiple-import will be allowed
e.g., a.api -> b.api -> c.api
-> c.api
* refactor(goctl): adds comments to exported var
* fix(goctl): typo in a comment
3 years ago
anqiansong
252fabcc4b
fix nil pointer if group not exists ( #1773 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
9fe868ade9
chore: remove legacy code ( #1766 )
3 years ago
Kevin Wan
faad6e27e3
feat: use go:embed to embed templates ( #1756 )
3 years ago
anqiansong
9c2d526a11
Fix unit test ( #1730 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
3 years ago
Xiaoju Jiang
321dc2d410
Added support for setting the parameter size accepted by the interface and custom timeout and maxbytes in API file ( #1713 )
...
* Added support for setting the parameter size accepted by the interface
* support custom timeout and maxbytes in API file
* support timeout used unit
* remove goctl maxBytes
3 years ago
Fyn
500bd87c85
fix(goctl): api format with reader input ( #1722 )
...
resolves #1721
3 years ago
ronething-bot
18916b5189
[fix] typo ( #1655 )
3 years ago
ronething-bot
56e1ecf2f3
fix: typo ( #1646 )
3 years ago