Fyn
036d803fbb
docs(goctl): goctl 1.3.4 migration note ( #1780 )
...
* docs(goctl): goctl 1.3.4 migration note
* adds a simple lang check
* adds migration notes
* chore: remove i18n
* chore: remove todo
2022-04-18 14:42:13 +08:00
chen quan
c6ab11b14f
chore: use grpc.WithTransportCredentials and insecure.NewCredentials() instead of grpc.WithInsecure ( #1798 )
...
Signed-off-by: chenquan <chenquan.dev@gmail.com>
2022-04-18 14:15:09 +08:00
Kevin Wan
9e20b1bbfe
chhore: fix usage typo ( #1797 )
2022-04-17 21:17:31 +08:00
fang duan
fadef0ccd9
goctl api new should given a service_name explictly ( #1688 )
2022-04-17 20:59:18 +08:00
fang duan
4382ec0e0d
show help when running goctl api without any flags ( #1678 )
...
close #1676
2022-04-17 20:58:12 +08:00
fang duan
db99addc64
show help when running goctl docker without any flags ( #1679 )
...
close #1677
2022-04-17 20:57:46 +08:00
fang duan
97bf3856c1
show help when running goctl rpc protoc without any flags ( #1683 )
2022-04-17 20:57:26 +08:00
fang duan
ff6c6558dd
improve goctl rpc new ( #1687 )
2022-04-17 20:56:56 +08:00
Kevin Wan
5d4e7c84ee
revert postgres package refactor ( #1796 )
...
* Revert "refactor: move postgres to pg package (#1781 )"
This reverts commit ba8ac974aa
.
* remove pg, use postgres
2022-04-17 12:07:48 +08:00
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
2022-04-15 19:07:34 +08:00
Fyn
ee88abce14
fix(goctl): api/new/api.tpl ( #1788 )
2022-04-14 23:43:48 +08:00
Kevin Wan
ecc3653d44
fix #1729 ( #1783 )
2022-04-13 19:06:00 +08:00
Kevin Wan
ba8ac974aa
refactor: move postgres to pg package ( #1781 )
2022-04-13 12:46:09 +08:00
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
2022-04-11 11:00:28 +08:00
方航
fabea4c448
fix bug: crash when generate model with goctl. ( #1777 )
...
* fix bug: crash when generate model with goctl.
situation: column name with line.
CREATE TABLE test (
id int NOT NULL AUTO_INCREMENT,
zh-cn text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '中文简体',
PRIMARY KEY (id) USING BTREE,
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
* group imports
group imports
* Use
go-zero/tools/goctl/util/string.go
func SafeString(in string) string {
instead of ReplaceAll
Co-authored-by: 方航 <fanghang@tange.ai>
2022-04-11 10:11:40 +08:00
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
2022-04-09 23:26:57 +08:00
anqiansong
252fabcc4b
fix nil pointer if group not exists ( #1773 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-09 11:54:30 +08:00
Kevin Wan
415c4c91fc
fix: model unique keys generated differently in each re-generation ( #1771 )
2022-04-09 00:25:23 +08:00
fang duan
0cc9d4ff8d
show help when running goctl rpc template without any flags ( #1685 )
...
close #1684
2022-04-08 22:28:45 +08:00
Kevin Wan
8bc34defc4
chore: avoid deadlock after stopping TimingWheel ( #1768 )
2022-04-07 11:50:18 +08:00
anqiansong
8dd764679c
Fix #1765 ( #1767 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-07 10:40:21 +08:00
Kevin Wan
9fe868ade9
chore: remove legacy code ( #1766 )
2022-04-06 23:24:20 +08:00
Kevin Wan
4e48286838
chore: add doc ( #1764 )
2022-04-06 22:42:40 +08:00
Kevin Wan
ab01442d46
add more tests ( #1763 )
...
* feat: add goctl docker build scripts
* chore: add more tests
2022-04-06 16:09:06 +08:00
Kevin Wan
8694e38384
feat: add goctl docker build scripts ( #1760 )
2022-04-05 13:07:05 +08:00
Kevin Wan
d5e550e79b
Update readme-cn.md
2022-04-05 11:51:53 +08:00
Kevin Wan
affdab660e
Update readme.md
2022-04-05 11:51:09 +08:00
Kevin Wan
7d5858e83a
Update readme.md
2022-04-05 11:08:00 +08:00
Kevin Wan
815a6a6485
Update readme-cn.md
2022-04-05 11:07:37 +08:00
benqi
475d17e17d
feat: support ctx in kv methods ( #1759 )
2022-04-04 23:19:58 +08:00
Kevin Wan
8472415472
fix #1754 ( #1757 )
2022-04-04 22:13:08 +08:00
Kevin Wan
faad6e27e3
feat: use go:embed to embed templates ( #1756 )
2022-04-04 13:12:05 +08:00
anqiansong
58a0b17451
Support goctl env install
( #1752 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-03 21:58:43 +08:00
Kevin Wan
89eccfdb97
chore: update go-zero to v1.3.2 in goctl ( #1750 )
2022-04-03 20:44:33 +08:00
Kevin Wan
78ea0769fd
feat: simplify httpc ( #1748 )
...
* feat: simplify httpc
* chore: fix lint errors
* chore: fix log url issue
* chore: fix log url issue
* refactor: handle resp & err in ResponseHandler
* chore: remove unnecessary var names in return clause
2022-04-03 14:32:27 +08:00
Kevin Wan
e0fa8d820d
feat: return original value of setbit in redis ( #1746 )
2022-04-02 20:25:51 +08:00
Kevin Wan
dfd58c213c
fix: model generation bug on with cache ( #1743 )
...
* fix: model generation bug on with cache
* chore: refine template
* chore: fix test failure
2022-04-02 15:36:06 +08:00
Kevin Wan
83cacf51b7
chore: update goctl version to 1.3.4 ( #1742 )
2022-04-02 14:19:34 +08:00
Kevin Wan
6dccfa29fd
feat: let model customizable ( #1738 )
2022-04-01 22:19:52 +08:00
anqiansong
7e0b0ab0b1
Fix zrpc code generation error with --remote ( #1739 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-01 22:19:33 +08:00
Kevin Wan
ac18cc470d
chore: refactor to use const instead of var ( #1731 )
2022-04-01 15:23:45 +08:00
Fyn
f4471846ff
feat(goctl): supports model code 'DO NOT EDIT' ( #1728 )
...
Resolves : #1710
2022-04-01 14:48:45 +08:00
anqiansong
9c2d526a11
Fix unit test ( #1730 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-01 14:46:12 +08:00
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
2022-03-31 21:39:02 +08:00
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
2022-03-31 20:20:00 +08:00
Fyn
500bd87c85
fix(goctl): api format with reader input ( #1722 )
...
resolves #1721
2022-03-31 00:20:51 +08:00
Kevin Wan
e9620c8c05
chore: refactor code ( #1708 )
2022-03-24 22:10:15 +08:00
aimuz
70e51bb352
fix: empty slice are set to nil ( #1702 )
...
support for empty slce, Same behavior as json.Unmarshal
2022-03-24 21:41:38 +08:00
Kevin Wan
278cd123c8
feat: remove reentrance in redislock, timeout bug ( #1704 )
2022-03-24 16:17:01 +08:00
Kevin Wan
3febb1a5d0
chore: refactor code ( #1700 )
2022-03-23 19:09:45 +08:00