Basic information
About go
Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.
go is an agent skill listed in the AddMCP.net directory, published by grafana. Runtime: Go. License: AGPL-3.0. The repository has 29,105 GitHub stars. Source code is hosted on github.com. Related topics: cloudnative, grafana, hacktoberfest, logging, loki.
Overview
What is go?
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:
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:
go doc foo.Bar # Documentation for a specific symbol
go doc -all foo # All documentation for a packageRunning Programs
Use go run instead of go build to avoid leaving behind build artifacts:
go run . # Run the current package
go run ./cmd/foo # Run a specific commandVideos
Tutorials, guides, and showcases related to go. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In