moai-lang-go

Develop Go 1.23+ microservices, CLI tools, and cloud-native apps with Fiber, Gin, GORM, sqlc, and errgroup.

Updated Nov 20, 2025
One-click install
npx skills add https://github.com/soo-kate-yeon/shadowoo --skill moai-lang-go-soo-kate-yeon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-go
Source: https://github.com/soo-kate-yeon/shadowoo/tree/main/.agents/skills/moai-lang-go
Command: npx skills add https://github.com/soo-kate-yeon/shadowoo --skill moai-lang-go-soo-kate-yeon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexities of building high-performance, concurrent applications in Go, streamlining development for microservices, CLI tools, and cloud-native systems.

Core Features & Use Cases

  • Web Frameworks: Supports Fiber, Gin, Echo, and Chi for building robust APIs.
  • Data Persistence: Integrates with GORM for ORM capabilities and sqlc for type-safe SQL.
  • Concurrency: Provides patterns for goroutines, channels, and error handling with errgroup.
  • Use Case: Develop a scalable microservice backend using Fiber, connect to a PostgreSQL database with GORM, and implement concurrent request handling using errgroup.

Quick Start

Use the moai-lang-go skill to create a basic Fiber API with a GET endpoint for /users.

Frequently Asked Questions about moai-lang-go

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a scalable microservice backend using Fiber and GORM in Go?

To build a scalable microservice backend using Fiber and GORM, use Go 1.23+ to define routes with Fiber and connect to PostgreSQL using GORM. Implement concurrent request handling with errgroup to manage parallel tasks efficiently across the API endpoints.

What is the best way to handle concurrency and errors in a Go microservice?

Handling concurrency in a Go microservice is best achieved using errgroup with goroutines and channels. This pattern manages parallel worker pools safely, propagating errors gracefully across concurrent operations without blocking the main process.

How do I implement type-safe SQL queries in Go instead of using an ORM?

Type-safe SQL queries in Go are implemented using sqlc, which generates Go code from SQL statements. This approach provides compile-time type safety for database interactions, offering an alternative to GORM's runtime ORM mapping.

Can I use Gin or Echo for cloud-native applications alongside Fiber?

Yes, you can use Gin, Echo, and Chi for cloud-native applications alongside Fiber. The Skill supports these web frameworks interchangeably to build robust APIs, allowing you to select based on your specific performance needs.

How do I deploy a Go application using Docker with graceful shutdowns?

Deploying a Go application with Docker involves containerizing the compiled binary and implementing graceful shutdowns. This ensures active connections drain properly during termination, preventing data loss in high-performance microservices and CLI tools.