Discover Packages
github.com/scttfrdmn/go-notebook
examples
cachepolicy
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Jul 19, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Card struct{ Label, Value, Caption string }
type Chart struct {
Curves Curves
Marker int
}
Chart draws the two hit-rate curves against cache size, with a size marker.
Curves holds both policies' hit-rate over the swept cache sizes.
type Readout struct{ Cards []Card }
Render draws the verdict cards. A composite value with no Render method carries no
MIME and the client hides the cell — so the cards render themselves. Engine-called,
not a cell, so fmt here is fine.
type Rendered struct{ MIME, Data string }
type Trace struct {
Refs []int
Workload int
}
Trace is the generated access stream plus the workload that shaped it.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.