go
Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.
来源信息
- 仓库
- grafana/loki
- 最近来源活动
- 2026年1月30日 22:21
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 28,919
- 分支
- 4,115
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- go
- description
- Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.
- allowed-tools
- Read,Bash(go:*)
- version
- 1.0.0
- author
- User
- license
- MIT
# Go Programming Language
Guidelines for working effectively with Go projects.
## Reading Dependency Source Files
To see source files from a dependency, or to answer questions about a dependency:
```bash
go mod download -json MODULE
```
Use the returned Dir path to read the source files.
## Reading Documentation
Use go doc to read documentation for packages, types, functions, etc:
```bash
go doc foo.Bar # Documentation for a specific symbol
go doc -all foo # All documentation for a package
```
## Running Programs
Use go run instead of go build to avoid leaving behind build artifacts:
```bash
go run . # Run the current package
go run ./cmd/foo # Run a specific command
```
在 GitHub 查看