golang-popular-libraries

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

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

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 the standard library often already covers the need. This Skill guides library selection so you avoid over-engineering, abandoned dependencies, and unnecessary wrappers around stdlib functionality. ## Core Features & Use Cases - Vetted library catalog: Curated recommendations across web frameworks, databases, testing, logging, messaging, DI, and more, with notes on maturity and maintenance status. - Standard library first: Prioritizes stdlib and golang.org/x packages (slog, slices, maps, x/time/rate) before suggesting third-party dependencies. - Anti-pattern detection: Warns against deprecated libraries (e.g., Logrus), stdlib wrappers without added value, and heavy frameworks when a lightweight router like chi fits better. - Use Case: When starting a new Go service that needs PostgreSQL access, ask for a driver recommendation and get pgx positioned ahead of lib/pq, with sqlc presented for compile-time type safety instead of GORM's runtime reflection. ## 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 standard library option against third-party alternatives.

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, and avoid Logrus since it is deprecated.

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 feature-complete but relies on runtime reflection, so SQL errors surface only at runtime.

What HTTP router is best for a minimal Go REST API?▼

chi (github.com/go-chi/chi) is the best fit when you want path parameters and middleware while staying close to net/http. Full frameworks like Gin or Echo add more features but move you away from the standard library idioms.

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

Avoid libraries that merely wrap standard library functionality without adding value, abandoned or unmaintained packages, and heavy dependencies for simple needs. Every added dependency increases attack surface and maintenance burden.

Does Go have a built-in rate limiter or do I need a library?▼

Yes, golang.org/x/time/rate is the official rate limiter implementing a token bucket algorithm. Third-party middleware like Tollbooth is only needed for HTTP-specific features such as per-IP or distributed rate limiting.