go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

A cloud-native Go microservices framework with cli tool for productivity.

Results 430 go-zero issues
Sort by recently updated
recently updated
newest added

goctl version 1.3.3 linux/amd64 我们在获取降载成员时,使用getShedder,实现如下: ``` func (ng *engine) getShedder(priority bool) load.Shedder { if priority && ng.priorityShedder != nil { return ng.priorityShedder } return ng.shedder } ``` 所以,具体获取到哪一个,其实就看变量 priority。而gozero整个框架中,只有一处使用到getShedder ```...

rpc不能拆分 通常一个rpc 可以长达1000多行 不利于维护 使用protoc-gen-go 生成rpc时 会自动加入omitempty 导致 0和 “”字段会被忽略, 所以上层api接受的时候 还需要再硬复制到一个变量能增加代码量 同时还需要实例返回内容,建议修改优化

Provides the ability to generate nested types like ```go type CommonResponse { Code int `json:"code"` // 100 | 200 Message string `json:"message"` } type UserCreateDto { Id string `json:"id"` }...

**Describe the bug** [Quick Start](https://go-zero.dev/cn/docs/introduction/#5-quick-start) document operation appears httpx redeclared in this block error **Expected behavior** No duplicate package introduction errors **Screenshots** ![image](https://user-images.githubusercontent.com/48479242/181675816-e3869169-45eb-44f7-b029-abd337545f4b.png) **Environments (please complete the following information):** -...

remove useless code. Because 1. Windows can't name quotes in file 2. This line will cause MacOS and Linux file not find

**Is your feature request related to a problem? Please describe.** The go language monolithic-service generated by goctl is simplified with generics **Describe the solution you'd like** Since go v1.18, generics...

在 go-zero 中对 NotFoundHandler & NotAllowedHandler 的这种情况进行了封装 ![image](https://user-images.githubusercontent.com/9820142/173626841-6949f898-7e5e-4e04-8784-fa009e68d318.png) 正常可到达请求返回 Header 如下 ![image](https://user-images.githubusercontent.com/9820142/173626719-d208ac2d-c08a-41f2-bfec-beeafc67570b.png) 但是在请求 NotFoundHandler & NotAllowedHandler 不存在的链接时,没有出现 Cors Header 头信息,这样就会导致前端跨域报错,然后整个开发体验会不是很友好 ![image](https://user-images.githubusercontent.com/9820142/173627213-e08e0353-78b5-407e-ab13-b7efbeba8613.png)

stale

I started a python service generated by "grpc_tools", and then I tried to use API gateway to call it in the same way as the RPC service of gozero. This...