wei丶404

Results 20 issues of wei丶404

这一行代码 https://github.com/bigwhite/experiments/blob/master/go_timer_reset/example4.go#L31 为什么不选择使用defer写在for之前呢 比如24行的位置 望大佬解答~

## 想要使用关联关系的时候 right join 怎么操作呀 ```go type Card struct { Id int `json:"id,omitempty" gorm:"column:id"` Amount float64 `json:"amount,omitempty" gorm:"column:amount"` Currency string `json:"currency,omitempty" gorm:"column:currency"` GiftCard Giftcard `json:"giftCard,omitempty" gorm:"foreignKey:CardId"` CardConsumer CardConsumer `json:"consumer,omitempty" gorm:"foreignKey:CardId"`...

type:question

The issue tracker is **ONLY** used for the CPP/C client (feature request of RocketMQ need to follow [RIP process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal)). Keep in mind, please check whether there is an existing same...

### Feature-request 当前的log只能在log.logger时增加全局信息,而有时执行的过程中才会增加局部的全局变量,则需要使用logger而不是helper,就会很麻烦。 ### Proposal helper := log.NewHelper() helper = helper.With(helper, "k1", "v1", "k2", "v2");

feature

当我使用kratos自带的http.NewClient时,caller打印的是tracing.go:64, 而我在外部重新设置caller时却发现多了一个caller, 而没有进行覆盖。 这是代码: ```go logger = log.With(logger, "caller", log.Caller(9)) return http.NewClient( context.Background(), http.WithEndpoint("127.0.0.1:8081"), http.WithTimeout(1*time.Second), http.WithMiddleware( recovery.Recovery(), tracing.Client(), logging.Client(logger), metrics.Client(), ), ) ``` 这是打印日志 > ERROR caller=test.go:81 ts=2022-09-01T11:38:55+08:00 caller=tracing.go:64 service.id=MacBook-Pro.local...

feature

执行器注册失败3:

如何设置喝水时间呀

目前遇到了使用task/cli/ctl的使用场景,想要咨询下在kratos中 怎么应用比较好,有没有较好的案例或者指导呀~

question

为什么不使用官方提供的https://pkg.go.dev/github.com/hashicorp/consul/api/watch 而是要自己写定时循环 求解~

question