brief

package
v0.7.66 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 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 brief renders plain-text briefs of captured characters. Every line comes from the capture; gaps are stated.

Index

Constants

View Source
const StaleAfter = time.Hour

StaleAfter is the capture age after which a brief carries a warning.

Variables

View Source
var Slots = []string{
	"head", "neck", "shoulder", "back", "chest", "shirt", "tabard", "wrist", "hands", "waist",
	"legs", "feet", "finger1", "finger2", "trinket1", "trinket2", "mainhand", "offhand", "ranged",
}

Slots are the standard inventory slots, by the lowercase names ForeverScribe uses.

Functions

func Character

func Character(c character.Character, client character.Client, now time.Time) string

Character renders the brief of one character. client is the capture's client (the character's, else the file's).

func Choose

func Choose(f character.File, name string) (character.Character, error)

Choose picks the character a request names (or the only one).

func ClientLine

func ClientLine(c character.Client) string

ClientLine describes the client that wrote the capture; "" when none was recorded.

func FormatMoney

func FormatMoney(copper *int) string

FormatMoney renders copper as gold, silver and copper.

func TopGroups

func TopGroups(t *character.Talents) (names []string, points int)

TopGroups are the talent groups holding the most points (several when tied) and that count; none when no points are spent.

func UTC

func UTC(ts int64) string

UTC formats a capture time the way briefs do.

Types

type Entry

type Entry struct {
	Name       string  `json:"name"`
	Key        string  `json:"key"`
	Level      *int    `json:"level"`
	Class      string  `json:"class"`
	Realm      string  `json:"realm"`
	CapturedAt *string `json:"captured_at"`
}

Entry is one row of list_characters.

func List

func List(f character.File) []Entry

List summarises every captured character.

type LookupError

type LookupError struct{ Msg string }

LookupError means the requested character cannot be chosen; the message says what to do.

func (*LookupError) Error

func (e *LookupError) Error() string

Jump to

Keyboard shortcuts

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