go-http-server-routes
OfficialEasy Go HTTP routing with methods & wildcards
Authorsandgardenhq
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The skill addresses the difficulty of defining concise, method-aware routes and complex path patterns in Go's standard net/http ServeMux before Go 1.22, which required manual parsing and custom logic.
Core Features & Use Cases
- Method matching: Prefix routes with HTTP verbs (GET, POST, etc.) directly in patterns.
- Single-segment and multi-segment wildcards: {id} and {path...} to capture variables.
- Exact trailing-slash matching using {$} for precise endpoint control.
- Precedence and conflict detection ensures deterministic routing and panics on ambiguous patterns.
- Use case: Build a RESTful API with CRUD endpoints such as GET /api/posts/{id}, POST /api/posts, PUT /api/posts/{id}, DELETE /api/posts/{id} without external routers.
Quick Start
Ask the AI to generate a Go HTTP server that uses the new routing syntax to provide CRUD endpoints for a “posts” resource.
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-http-server-routes Download link: https://github.com/sandgardenhq/sgai/archive/main.zip#go-http-server-routes 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.