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

I get trouble setting expiration time for redis. How can i do that. Do I need to add in config.go or .yaml file? Please show me with example code.

**Describe the bug** I use the code generated by `goctl model pg datasource -url="postgresql://postgres@localhost:5432/postgres?sslmode=disable" -table="xxx" -c` the ddl is below and there is a `unique index` ``` CREATE TABLE tx_status...

logx conf add DisableStat --------------------------- Log: Mode: console Path: logs/api Level: info DisableStat: false

https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices https://go.dev/doc/effective_go#maps https://go.dev/doc/effective_go#slices

在写rpc 的时候, 我想把 rpc的某个业务流程方面的错误返回给api. return xx.Reply, errorx.CodeError() 这个errorx.CodeError()对象到api 的时候,类型就不在是 CodeError类型的error了. 现在只能在 reply里面定义code 和msg 我想问下, 好的go-zero项目 关于 rpc返回业务流程错误是怎么做的? 求求大佬给一个好的建议. (业务流程的错误可能有几种)

![image](https://user-images.githubusercontent.com/59365443/190958062-e330f343-e084-4f16-9186-a9cf50634160.png)

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] run command : ```...

supported token limiter with context using option func mode, if not set, using context.backgroud as default ```go // example s, err := miniredis.Run() assert.Nil(t, err) l := NewTokenLimiter(rate, burst, redis.New(s.Addr()),...

The current api documentation generated by swagger only has examples of successful returns for returns, and lacks support for multiple return formats, add additional annotation syntax to support the feature....