report

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 8 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 report renders the stakeholder snapshot as a one-page PDF.

It computes nothing. Everything on the page comes from `internal/publish/snapshot.Snapshot` — the same document the stakeholder bundle publishes — so a figure in the PDF and the same figure in the web snapshot cannot disagree. The spend section is gated there, at build time, by `show_spend_to_stakeholder`; this package renders `Budget.Enabled` and has no opinion of its own about who may see it.

One page is a requirement, not a target: a report that spills onto a second page has stopped being the thing you glance at before a meeting. The layout leaves the milestone table the only section that grows, and caps it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PDF

func PDF(w io.Writer, s snapshot.Snapshot, opts Options) error

PDF writes the report.

Types

type Options

type Options struct {
	// Compress is fpdf's stream compression. On by default in the command —
	// a compressed A4 page is a few kB — and OFF in tests, where the point is
	// to read the text back out of the bytes without a decompressor.
	Compress bool
	// Now dates the footer's freshness line. Zero means the snapshot's own
	// GeneratedAt is the only date on the page.
	Now time.Time
}

Options tunes the rendering.

Jump to

Keyboard shortcuts

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