golang-web
仓库创建 2025年12月9日最近提交 10 天前SkillHot 收录 21 天前
▸ 精选理由
帮助快速搭建可维护且符合规范的 Go 后端工程。
这个 Skill 做什么
提供现代 Go Web 项目架构、选型与最佳实践指导。
给新建 Go 后端或微服务一套实用的项目架构和选型建议,包含目录结构、依赖注入、接口设计和错误处理等实践。会在搭新项目、重构老代码或制定团队编码规范时派上用场,帮助避免常见反模式。特色是以 Go 语言习惯为核心,强调可维护性和明确的依赖边界。
▸ 展开 SKILL.md 英文原文
Modern Go Web application architecture guide. Use when creating new Go web projects, APIs, or microservices. Covers project structure, tech stack selection, and best practices based on Go standards.
240
Stars
23
Forks
40
仓库内 Skill
+8
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/majiayu000/spellbook/main/skills/golang-web/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/majiayu000/spellbook/main/skills/golang-web/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Go Web Architecture ## Core Principles - **Standard layout** — Follow cmd/internal/pkg convention - **Explicit dependencies** — Wire dependencies in main.go, no globals - **Interface-driven** — Define interfaces where you use them, not where you implement - **Error wrapping** — Wrap errors with context, use error codes - **No backwards compatibility** — Delete, don't deprecate. Change directly - **LiteLLM for LLM APIs** — Use LiteLLM proxy for all LLM integrations --- ## No Backwards Compatibility > **Delete unused code. Change directly. No compatibility layers.** ```go // ❌ BAD: Deprecated function kept around // Deprecated: Use NewUserService instead func CreateUserService() *UserS
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有