go-context
CommunityContext usage in Go, made explicit.
Authorcxuu
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go context patterns standardize how context.Context is passed and avoid common pitfalls like leaking contexts or storing them in structs.
Core Features & Use Cases
- Clear guidelines for using context.Context as the first parameter
- Best practices for cancellation, deadlines, and value propagation across call boundaries
- Real-world use cases such as API handlers, background workers, and long-running tasks
Quick Start
Implement a simple Go function that takes a context as the first parameter and demonstrate cancellation with a timeout.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-context Download link: https://github.com/cxuu/golang-skills/archive/main.zip#go-context Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.