Benign go Download

github.com/kirkdiggler/rpg-toolkit/world v0.3.1-0.20260905041048-e9da06e96f70

Go functions have machine-generated namesBasename is uppercase README.md
SHA-25602104da4e5c73f6078b3a37aa187b5eef496e03648337780429894a89a1bb6d9

Evidence

imports errors ledger.go · lines 1–18
⋯4 lines
5
6import (
7 "errors"
8 "fmt"
9 "slices"
10
11 "github.com/KirkDiggler/rpg-toolkit/world/graph"
12 "github.com/KirkDiggler/rpg-toolkit/world/journal"
13)
14
15// ErrUnknownJob reports a claim on a job that is not on the board.
16var ErrUnknownJob = errors.New("there is no job by that name on the board")
17
18// ErrDupli …
English function-word token "this" ledger.go · lines 18–21
18:43… clared twice.
19var ErrDuplicateJob = errors.New("this job is declared twice — each job needs its own id")
20
21// Ledger is every job on the board, inc …
Go functions have machine-generated names ledger.go · lines 48–54
48:48… startup and not three sessions
49// in. Returns [ErrDuplicateJob] or any of the template errors.
50func NewLedger(templates ...Template) (*Ledger, error) {
51 l := &Ledger{index: make(map[string]*Board, len(templates))}
52 for _, t := range templates {
53 if _, seen := l.index[t.ID]; seen {
54 return nil, fmt.Errorf("%q: …
Reference guide has multiple section headings README.md · lines 1–15
1# world
2
3The composer for a living region: declared content plus an injected rulebook,
4assembled into one append-only journal and one folded present per observer.
5
6Design record: `rpg-project` `ideas/living-world/`. Rendered doc:
7https://kirkdiggler.github.io/rpg-toolkit/living-world/.
8
9## Overview
10
11`world` is rulebook-free by construction — its only external dependency is
12testify. A rulebook plugs in through the one seam this module consults for
13anything a die or a class feature would decide: [`Resolver`](world.go).
14
15Fo …
Markdown-style heading precedes a code fence README.md · lines 24–36
24:15… y point one way: `journal <- graph <- quest <- goal <- world`.
25
26## Installation
27
28```bash
29go get github.com/KirkDiggler/rpg-toolkit/world
30```
31
32## Declare, inject, subscribe
33
34A rulebook builds a world through exactly three touchpoints:
35
361. **Declare** — `Scenario` is what a content package hands ov …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.