Versions in this module Expand all Collapse all v0 v0.0.3 Jan 15, 2026 Changes in this version + var UpdateGolden = flag.Bool("update", false, "update golden files") v0.0.2 Jan 10, 2026 Changes in this version + func PrintGolden(tb testing.TB, name ...string) v0.0.1 Jan 10, 2026 Changes in this version + func Compare(got, want []byte) bool + func Diff(want, got []byte, wantLabel, gotLabel string) string + func GoldenPath(testName string, name ...string) string + func Normalize(content []byte) []byte + func ProcessWithOptions(text string, opts *Options) string + func ReadGolden(path string) ([]byte, error) + func StripANSI(s string) string + func WriteGolden(path string, content []byte) error + type Option func(*Options) + func WithName(name string) Option + func WithSize(width, height int) Option + func WithWidth(width int) Option + type Options struct + Height int + Name string + Width int + func ApplyOptions(opts ...Option) *Options + type Screen struct + func NewScreen(width, height int) *Screen + func (s *Screen) String() string + func (s *Screen) Write(text string)