golang-code-style · AI Skill 用途与安装 · iSkills.cc
Go 代码风格规范,包括行长度、变量声明和控制流写法。
分类:编程开发
来源仓库:samber/cc-skills-golang
适合用来做什么
- 请解释Golang中何时使用错误包装(%w)。
- 在Golang中,如何创建一个自定义错误类型?
不适合的情况
- for the check: ### Switch Over If-Else Chains When comparing the same variable multiple times, prefer `switch`: ## Function Design - Functions SHOULD be **short and focused** — one function, one job.
安装 golang-code-style
npx skills add https://www.iskills.cc/skills/samber/cc-skills-golang/golang-code-style/SKILL.md
在本机终端执行安装命令。安装前请阅读原始说明,确认所需工具、账号和权限。