wording

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package wording defines human-readable provenance labels and accuracy badges ensuring full transparency across all figures.

Package wording words a report the same way on the web and in the terminal: one line per badge, the shelf it stands on and the headline numbers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Line

func Line(row report.Row) string

Line is a badge's status in one line: "72 / 128 to x3", "Top tier, 252,192 stars", "x2, next tier at 24", "Since 2020", or how to earn a single-tier badge not earned yet.

func Since

func Since(unlocked string) string

Since is the year a badge was first unlocked, or "Earned" when GitHub gives no date.

Types

type Shelf

type Shelf int

Shelf is where a badge stands: on display, still to collect, or in the archive.

const (
	Display Shelf = iota // earned, any kind
	Collect              // earnable, not earned (or hidden)
	Archive              // cannot be earned any more, not earned
)

func ShelfOf

func ShelfOf(row report.Row) Shelf

ShelfOf places a row on its shelf.

type Summary

type Summary struct {
	Earned, EarnableTotal, TierTotal int
	Closest                          *report.Row // the counted earnable badge with the fewest to go; nil if none
}

Summary is the headline both the result page and the CLI print.

func Summarize

func Summarize(r *report.Report) Summary

Summarize counts earned earnable badges, total tiers and the closest next unlock.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL