Fyn
db949e40f1
feat: supports `importValue` for more path formats ( #1569 )
...
`importValueRegex` now can match more path formats
Resolves : #1568
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
Kevin Wan
aa29036cb3
feat: support ctx in sql model generation ( #1551 )
3 years ago
Kevin Wan
607bae27fa
feat: support ctx in sqlx/sqlc, listed in ROADMAP ( #1535 )
...
* feat: support ctx in sqlx/sqlc
* chore: update roadmap
* fix: context.Canceled should be acceptable
* use %w to wrap errors
* chore: remove unused vars
3 years ago
mlr3000
50b1928502
chore:use struct pointer ( #1538 )
3 years ago
Kevin Wan
6deb80625d
fix issue of default migrate version ( #1536 )
...
* fix issue of default migrate version
* chore: update console colors
3 years ago
Kevin Wan
84ddc660c4
chore: goctl format issue ( #1531 )
3 years ago
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
3 years ago
Kevin Wan
c1d2634427
chore: update go version for goctl ( #1484 )
3 years ago
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
3 years ago
anqiansong
cdf7ec213c
fix #1468 ( #1478 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
df0f8ed59e
Fix/issue#1289 ( #1460 )
...
* fix #1289
* Add unit test case
* fix `jwtTransKey`
* fix `jwtTransKey`
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
c903966fc7
patch: save missing templates to disk ( #1463 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
9b592b3dee
Feature rpc protoc ( #1251 )
...
* code generation by protoc
* generate pb by protoc direct
* support: grpc code generation by protoc directly
* format code
* check --go_out & --go-grpc_out
* fix typo
* Update version
* fix typo
* optimize: remove deprecated unit test
* format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
3 years ago
Kevin Wan
e267d94ee1
chore: update go-zero to v1.2.5 ( #1410 )
3 years ago
anqiansong
89ce5e492b
refactor file|path ( #1409 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
d6ff30a570
chore: fix golint issues ( #1396 )
3 years ago
Kevin Wan
62266d8f91
fix #1070 ( #1389 )
...
* fix #1070
* test: add more tests
3 years ago
anqiansong
b8ea16a88e
feat: Add --remote ( #1387 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
JiangYiJun
a67c118dcf
go-zero tools ,fix a func,api new can not choose style ( #1356 )
3 years ago
Kevin Wan
1becaeb7be
chore: refactor ( #1331 )
3 years ago
Kevin Wan
490ef13822
style: format code ( #1322 )
3 years ago
anqiansong
1b14de2ff9
fix : #1318 ( #1321 )
...
* fix #1318
* fix #1318
* remove never used code
* fix unit tes
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
0240fa131a
chore: rename service context from ctx to svcCtx ( #1299 )
3 years ago
Kevin Wan
543d590710
fixes #987 ( #1283 )
...
* fixes #987
* chore: fix test failure
* chore: add comments
3 years ago
anqiansong
f1d70eb6b2
Feature api root path ( #1261 )
3 years ago
Kevin Wan
86f9f63b46
Cli ( #1272 )
...
* Fix issue 1260 (#1262 )
* Fix #1238 (#1266 )
* docs: update readme to use goctl@cli (#1255 )
* chore: update goctl version
* style: coding style
* docs: update readme to use goctl@cli
* fix #1238
* format code
* format code
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
Co-authored-by: anqiansong <anqiansong@bytedance.com>
Co-authored-by: anqiansong <anqiansong@gmail.com>
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
c28e01fed3
feat: support CORS by using rest.WithCors(...) ( #1212 )
...
* feat: support CORS by using rest.WithCors(...)
* chore: add comments
* refactor: lowercase unexported methods
* ci: fix lint errors
3 years ago
Kevin Wan
4d22b0c497
feat: ignore rest.WithPrefix on empty prefix ( #1208 )
3 years ago
anqiansong
01786c5e63
Generate route with prefix ( #1200 )
...
* Generate route with prefix
* Update api convert
* Remove TrimSpace
* Update path join
* Format code
* Format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
b76c7ae55d
chore: remove semicolon for routes of services in api files ( #1195 )
3 years ago
anqiansong
a944a7fd7e
Mark deprecated syntax ( #1148 )
3 years ago
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
3 years ago
z-micro
80e3407be1
fix bug: generating dart code error ( #1090 )
3 years ago
Amor
41c980f00c
update goctl api ( #1052 )
...
* update goctl api
* add LoadTemplate
* update new api template
* update
3 years ago
Kevin Wan
2e12cd2c99
coding style ( #1083 )
3 years ago
anqiansong
9a724fe907
Add MustTempDir ( #1069 )
3 years ago
anqiansong
7fb5bab26b
fix #1058 ( #1064 )
3 years ago
Jerry Liang
5c6a3132eb
fix typo parse.go error message ( #1041 )
3 years ago
Kevin Wan
bdec5f2349
use sdktrace instead of trace for opentelemetry to avoid conflicts ( #1005 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
3 years ago
shenbaise9527
bc92b57bdb
api文件中使用group时生成的handler和logic的包名应该为group的名字 ( #545 )
...
* api文件中使用group时生成的handler和logic的包名应该为group的名字
* Update genhandlers.go
fix errors.
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
3 years ago
neosu
d8905b9e9e
add api template file ( #1003 )
3 years ago
anqiansong
8829c31c0d
Feature goctl error wrap ( #995 )
...
* Add `Wrap` in file errorx.go
* Wrap error with `GoctlError`
* format code
* Refactor package `env` to `version`
* Refactor package `IsVersionGatherThan`
* fix typo
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Vee Zhang
c26c187e11
remote handler blank line when .HasRequest is false ( #986 )
3 years ago
anqiansong
189721da16
Fix issues ( #931 )
...
* fix #929
* fix #925
* add test case
* update model README
* fix #929
* fix #929
* fix #929
* refactor dir
* Adding todo comments
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan
00c5734021
format coding style ( #905 )
3 years ago
lovelly
33f87cf1f0
带下划线的项目,配置文件名字错误。 ( #733 )
3 years ago
Kevin Wan
1fb356f328
refactor goctl ( #902 )
3 years ago
_ksco
cc264dcf55
refactor ( #878 )
...
* refactor(tools ): refactor cod
Improve code readability and performance
* fix(tools ): fix len bug
Co-authored-by: ksco <hyang@33.cn>
3 years ago