oldme

Results 31 issues of oldme

resolved #2098 resolved #2241 old: ![QQ截图20240213012936](https://github.com/gogf/gf/assets/45782393/fae0b68e-8788-49b7-b53a-972ad69a29a9) new: ![QQ截图20240213012830](https://github.com/gogf/gf/assets/45782393/f640265e-f021-4cd0-a752-3d6f35da058f)

fixed #2746

resolved #2764

Now, gf-cli uses regex to get file content, but this is not precision. PR #3066 has finished some.

discuss
CLI

# 不同 SQL 的覆盖问题 ``` r, _ := db.Table("user").Cache(time.Hour, "vip-user").Where("uid", 1).One() r, _ := db.Table("user").Cache(time.Hour, "vip-user").Where("uid", 2).One() ``` 实测 uid = 2 不会覆盖 uid = 1 # ClearCache 和 ClearCacheAll...

bug

Dear Reviewer: Sometimes, We need to get the raw (original) comments to generate some go template files. But CommentGroup.Text does not get the raw (original) comments. This makes it difficult...

**Dear review:** 先实现了 gtree ,如果可以再进一步处理其他的。不过我觉得 **IteratorFrom** 相关的方法可以废弃掉@gqcn

awesome

**Review Dear:** 本次 PR 对 `gf gen service` 进行了部分重构,即使用 `AST` 替换 `Regex` 来解析 `logic` 文件。因为gf gen是一个比较重要功能,反馈的问题也比较多,所以此次提交比较**重要**! ## 性能方面 相较于多次正则不同,`AST` 可**一次循环**解析出所有需要的语法,例如 `import, func, param, comment`,所以性能得到了略微的提升。 以下是对1000个文件,若干方法的测试结果,单位秒,测试环境:go1.22.1 windows11/AMD Ryzen 5500U/16G memory AST...

slow reviewing

### Go version - ### GoFrame version - ### Can this bug be reproduced with the latest release? Option Yes ### What did you do? - ### What did you...

bug