golang-popular-libraries

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

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

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 options are deprecated or unmaintained, and developers often add dependencies for things the standard library already covers. This Skill guides library selection so you pick mature, idiomatic options and avoid unnecessary dependencies. ## Core Features & Use Cases - Curated library catalog: Vetted recommendations across web frameworks, databases, testing, logging, messaging, caching, DI, and more (e.g., pgx over lib/pq, franz-go over sarama, chi for lightweight routing). - Standard library first: Highlights Go 1.21+ stdlib packages like slices, maps, log/slog, and golang.org/x extensions before suggesting third-party libraries. - Maintenance and anti-pattern checks: Flags deprecated libraries (e.g., Logrus) and warns against wrappers that add no value over stdlib. - Use Case: You ask which PostgreSQL driver to use for a new project; the Skill recommends pgx, explains its advantages over lib/pq, and notes when sqlc or an ORM fits better. ## Quick Start Ask the agent which Go library to use for a specific task, such as structured logging or Kafka messaging, and request a comparison of the top options.

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 choice for new projects. It is faster than lib/pq and supports all PostgreSQL types and advanced features, while lib/pq remains a viable but less capable alternative.

What Go library should I use for structured logging?▼

Start with log/slog, the standard library structured logger available since Go 1.21. Consider zap or zerolog only when you need zero-allocation hot paths or features slog does not provide.

How do I choose between GORM and sqlc for database access?▼

Choose 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 surface at runtime rather than compile time.

Is Logrus still a good choice for Go logging?▼

Logrus is deprecated and in maintenance mode, so it is not recommended for new projects. Use log/slog from the standard library, or zap and zerolog for high-performance structured logging.

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

Avoid libraries that merely wrap standard library functionality without adding real value, since each dependency increases attack surface and maintenance burden. Check whether stdlib packages like slices, maps, or net/http already cover your need first.

What is the best lightweight HTTP router for Go?▼

chi (github.com/go-chi/chi) is the best fit when you want a lightweight router that stays close to net/http with minimal dependencies. Full frameworks like Gin or Echo suit projects needing more built-in features.