Rudy

Results 3 issues of Rudy

https://github.com/xinliangnote/go-gin-api/blob/05f337088e1a18f06d02c25e90da6a045435ef51/internal/cron/cron_server/service_start.go#L30 上面这里是通过for循环进行了多次的分页查询。GORM是支持进行行迭代遍历查询的,是不是行迭代遍历效率更高一些呢? 参考:https://gorm.io/zh_CN/docs/advanced_query.html#%E8%BF%AD%E4%BB%A3

https://github.com/lifei6671/interview-go/blob/master/algorithm/docs/match-sunday-string.md 精简版代码供参考: ``` func strStrSunday(haystack, needle string) int { if haystack == "" { return -1 } if needle == "" { return 0 } haystackLen := len(haystack) needleLen :=...

Should we put the Repo interface (https://github.com/kott/go-service-example/blob/main/pkg/services/articles/article.go#L8) into package store (https://github.com/kott/go-service-example/blob/main/pkg/services/articles/store/repo.go)? I think the updated hierarchy would be more clear. Thanks!