Cursor rule
.cursor/rules/p.mdcGo项目开发规则 - 遵循Go最佳实践,不使用checkout和reset命令
Cursor rules
Quality
34/100
Scores the file, not the repository.Length
68 words
7 headings · 0 code blocksRepository
286
— · pushed 274 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# Go项目开发规则89## 代码规范10- 遵循Go官方代码规范11- 使用gofmt格式化代码12- 变量命名使用驼峰命名法13- 常量使用大写字母和下划线14- 包名使用小写字母,简短有意义1516## 错误处理17- 始终检查错误返回值18- 使用errors.New()或fmt.Errorf()创建错误19- 避免使用panic,除非是程序启动时的致命错误20- 使用defer进行资源清理2122## 并发编程23- 使用goroutine处理并发任务24- 使用channel进行goroutine间通信25- 避免共享内存,使用通信来共享内存26- 使用sync包进行同步控制2728## 性能优化29- 避免不必要的内存分配30- 使用对象池复用对象31- 合理使用缓存32- 避免在循环中进行重复计算333435## 项目结构36- 遵循标准Go项目布局37- 按功能模块组织代码38- 使用internal包限制内部代码访问39- 合理使用接口和依赖注入4041## 禁止使用的命令42- 不使用git checkout命令43- 不使用git reset命令44- 使用git switch切换分支45- 使用git restore恢复文件46
Also in phuhao00/greatestworks
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| phuhao00/greatestworks.github/instructions/gw.instructions.md · 286 | Copilot instructions | testlint-formatgit | 67/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126 | Cursor rules | buildlint-formatstylearch+3 | 96/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/task-context-loading.mdc · 126 | Cursor rules | archtypesdatabasedo-not+1 | 93/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/github-actions-testing.mdc · 121 | Cursor rules | setupbuildstylearch+4 | 93/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/creating-agents-md.mdc · 121 | Cursor rules | testlint-formatstylearch+7 | 92/100 | 3 days ago | |
| coollabsio/coolify.cursor/rules/coolify-ai-docs.mdc · 60k | Cursor rules | buildteststylearch+5 | 92/100 | 3 days ago |
