golang-popular-libraries

Recommends production-ready Go libraries and frameworks with a standard-library-first philosophy.

Updated Jun 15, 2026
One-click install
npx skills add https://github.com/2877389577/novels_ai_gen --skill golang-popular-libraries-2877389577
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: golang-popular-libraries
Source: https://github.com/2877389577/novels_ai_gen/tree/main/.agents/skills/golang-popular-libraries
Command: npx skills add https://github.com/2877389577/novels_ai_gen --skill golang-popular-libraries-2877389577

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Choosing the right Go library is hard: the ecosystem is large, some popular libraries are deprecated or unmaintained, and full frameworks are often overkill when the standard library already covers the use case. This Skill guides AI coding agents to recommend mature, production-ready Go libraries while always checking whether the standard library is sufficient first. ## Core Features & Use Cases - Curated library catalog: Vetted third-party libraries organized by category — web frameworks, database drivers, ORMs, testing, logging, messaging, caching, and more. - Standard library first: Covers new stdlib packages (slices, maps, log/slog, math/rand/v2) and golang.org/x extensions so external dependencies are only added when they provide clear value. - Anti-pattern detection: Warns against abandoned libraries (e.g., Logrus), unnecessary stdlib wrappers, and heavy frameworks for simple needs. - Use Case: When a developer asks "which PostgreSQL driver should I use?", the Skill recommends pgx over lib/pq, explains why, and notes maintenance status — instead of defaulting to whatever appears most in tutorials. ## Quick Start Ask the agent which Go library to use for a specific task, such as "What should I use for structured logging in my Go 1.22 project?"

Frequently Asked Questions about golang-popular-libraries

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

FAQPage Schema
Which Go PostgreSQL driver should I use, pgx or lib/pq?▼

pgx (github.com/jackc/pgx) is the recommended PostgreSQL driver for new Go projects. It is faster than lib/pq and supports all PostgreSQL types and advanced features. lib/pq remains a viable alternative but pgx is the preferred choice.

What Go library should I use for structured logging?▼

Start with log/slog, the standard library structured logger available since Go 1.21. Consider external libraries like zap or zerolog only when you need specific features such as zero-allocation logging in hot paths. Avoid Logrus, which is in maintenance mode.

Should I use GORM or sqlc for database access in Go?▼

Use sqlc when you want compile-time type safety, since it generates type-safe Go code from SQL with no runtime reflection. GORM is a feature-complete ORM but uses runtime reflection, so SQL errors are not caught at compile time.

What is the best lightweight HTTP router for Go?▼

Chi (github.com/go-chi/chi) is the recommended lightweight router when you want to stay close to net/http. It has minimal dependencies and composes well with the standard library, unlike full frameworks such as Gin or Echo.

When should I avoid adding a third-party Go library?▼

Avoid libraries that merely wrap standard library functionality without adding real value, abandoned or unmaintained packages, and libraries with large dependency footprints for simple needs. More dependencies increase attack surface and maintenance burden.

Does Go's standard library cover slice utility functions?▼

Yes, the slices package (Go 1.21+) provides Contains, Sort, Reverse, Compact, and BinarySearch. External libraries like samber/lo are only needed for functional operations such as Map, Filter, and GroupBy that the standard library does not cover.