# astaxie/gopkg

example for the go pkg's function

Repository: https://github.com/astaxie/gopkg
Canonical: https://ross.abutalabs.com/products/astaxie-gopkg
Language: Go
License Family: other
Last push: 2024-03-09T14:20:19+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4926, "days_push": 907, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1962, forks 566 (observed 2026-08-28T04:05:59.639409+00:00)

## What it is
A community-driven collection of code examples for Go standard library package functions, organized as one directory per package and one markdown file per function. It exists because the official Go documentation has too few usage examples, forcing developers to read source code to learn APIs.

## Use cases
- learn how to use Go standard library functions with examples
- find usage examples for functions like strings.Contains
- supplement sparse official Go documentation
- contribute examples for undocumented Go packages
- quickly understand Go pkg APIs without reading source code

## When to choose
- you are learning Go and need concrete usage examples for standard library functions
- official docs are too sparse and you want copy-pasteable, tested snippets
- you want to contribute examples to a community Go documentation effort

## When to avoid
- you need comprehensive, always-up-to-date API reference (use pkg.go.dev instead)
- you need examples for third-party Go packages rather than the standard library
- you need a runnable library or tool rather than documentation

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: documentation, developer-tools
- domain: developer-tools, tutorials, programming-languages, documentation
- platform: go, cross-platform
- tags: go-standard-library, code-examples, community-driven, chinese-documentation

## Member repositories
- astaxie/gopkg (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:59.639409+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:05:34.808906+00:00, confidence not recorded.
  - readme: https://github.com/astaxie/gopkg (fetched 2026-08-28T04:05:59.639409+00:00, sha 0e67f39175bc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
