render

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: 9 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 render formats achievement reports for terminal CLI output with 24-bit TrueColor and ANSI fallback palettes.

Package render prints a report as text or JSON.

Index

Constants

View Source
const StarURL = "https://github.com/TheVicky1/GitVerse"

StarURL is where the one-time star request points.

Variables

This section is empty.

Functions

func JSON

func JSON(w io.Writer, r *report.Report) error

JSON writes the report as indented JSON.

func StarLine

func StarLine(color bool) string

StarLine is the one-time request to star the repository.

func Text

func Text(w io.Writer, r *report.Report, opt Options)

Text writes the human report: the headline, then the shelves the result page shows.

Types

type Options

type Options struct {
	Color bool // ANSI colour and bold
	All   bool // also the archive, every highlight and each badge's notes
}

Options picks what Text prints.

Jump to

Keyboard shortcuts

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