gopkg is a large community-driven repository of examples for Go’s standard library packages, created to fill the gap left by the relatively sparse official examples. The project organizes content so that each package has its own directory and each function within that package gets its own Markdown file with code examples. The idea is that developers can quickly look up “how do I actually use this function?” without digging through source code or scattered blog posts. The maintainer provides conventions for naming and formatting, and requires that submitted examples compile and run locally or on the Go Playground, which helps keep the collection reliable. A todo.md file coordinates contributions so collaborators do not duplicate work, and there is an associated chat group for discussion. Overall, gopkg acts like a practical cookbook or living “examples companion” for the Go standard library.

Features

  • Per-function example files organized by standard library package
  • Clear conventions for directory structure and example formatting
  • Contribution workflow using todo.md to avoid duplicate efforts
  • Verified examples that must compile locally or on the Go Playground
  • Community chat group for collaborative learning and contribution
  • Acts as a practical “example index” for Go’s standard library functions

Project Samples

Project Activity

See All Activity >

Categories

Libraries

Follow gopkg

gopkg Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gopkg!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

2 hours ago