gopkg
Example for the go pkg's function
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. ...