Commit Graph

24 Commits

Author SHA1 Message Date
Kevin Wan
faad6e27e3
feat: use go:embed to embed templates (#1756) 2022-04-04 13:12:05 +08:00
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl (#1481) 2022-01-25 23:15:07 +08:00
Kevin Wan
e267d94ee1
chore: update go-zero to v1.2.5 (#1410) 2022-01-03 21:54:53 +08:00
anqiansong
89ce5e492b
refactor file|path (#1409)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-03 21:32:40 +08:00
Kevin Wan
00c5734021
format coding style (#905) 2021-08-12 14:58:37 +08:00
lovelly
33f87cf1f0
带下划线的项目,配置文件名字错误。 (#733) 2021-08-12 14:55:39 +08:00
kingxt
546fcd8bab
fix #736 (#738)
* optimize performance

* rename

* rename

* revert
2021-05-29 23:01:02 +08:00
kingxt
f98c9246b2
Code optimized (#493) 2021-02-20 19:50:03 +08:00
Kevin Wan
8774d72ddb
remove duplicated code in goctl (#369) 2021-01-09 00:17:23 +08:00
kingxt
b9ac51b6c3
feature: file namestyle (#223)
* add api filename style

* new feature: config.yaml

* optimize

* optimize logic generation

* check hanlder valid

* optimize

* reactor naming style

* optimize

* optimize test

* optimize gen middleware

* format

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-24 15:11:18 +08:00
kingxt
12327fa07d
break generator when happen error (#192)
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-07 21:25:52 +08:00
kevin
dfe6e88529 use goctl template to generate all kinds of templates 2020-10-19 23:13:18 +08:00
kevin
f904710811 support api templates 2020-10-15 16:36:49 +08:00
kingxt
05df86436f
optimized api new with absolute path like: goctl api new $PWD/xxxx (#67)
* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* update doc

* remove update

* optimized api new with absolute path like: goctl api new $PWD/xxxx

* optimized api new with absolute path like: goctl api new $PWD/xxxx

* optimized api new with absolute path like: goctl api new $PWD/xxxx

* optimized api new with absolute path like: goctl api new $PWD/xxxx

Co-authored-by: kingxt <dream4kingxt@163.com>
2020-09-13 16:17:21 +08:00
kevin
a987d12237 sort imports on api generation 2020-08-27 14:40:05 +08:00
kevin
1c24e71568 use yaml, and detect go.mod in current dir 2020-08-27 11:44:35 +08:00
kevin
ba636187ce fix goctl path issue on windows 2020-08-10 17:26:47 +08:00
kevin
3b5b8283db update goctl go generator 2020-08-10 10:35:53 +08:00
kevin
0a7e0cce77 update package reference 2020-08-08 16:40:10 +08:00
kim
b1e8dd62da add runner 2020-08-08 15:46:50 +08:00
kim
cf8e0a118f refactor ngin to rest 2020-07-31 17:03:19 +08:00
kevin
f372ded63c rename ngin to rest 2020-07-31 11:45:16 +08:00
kevin
0897f60c5d rename ngin to rest 2020-07-31 11:14:48 +08:00
kim
121323b8c3 goctl added 2020-07-29 17:12:04 +08:00