Skip to content

toolkit: add godoc examples for the v0.10-v0.21 APIs#19

Merged
tannevaled merged 1 commit into
mainfrom
add-godoc-examples
Jul 10, 2026
Merged

toolkit: add godoc examples for the v0.10-v0.21 APIs#19
tannevaled merged 1 commit into
mainfrom
add-godoc-examples

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Adds runnable Example functions documenting the session's new API surface — they render on pkg.go.dev and are compile/output-checked by go test.

Covered: the chart family (LineChart/BarChart/PieChart), MarkdownView, DatePicker, RangeSlider, SetFont/NewBitmapFont, ContextMenu, Overlay, and CollectA11y. Four carry verified // Output: blocks (DatePicker.Text, RangeSlider normalisation, the SetFont metric swap, CollectA11y roles); the rest are compile-checked construction examples in an external toolkit_test package so they read as real import-site usage.

Package coverage stays 100%; go vet clean; wasm builds. The global-font-mutating SetFont example restores the default, so the suite is unaffected.

🤖 Generated with Claude Code

Runnable Example functions (in an external toolkit_test package, so they read
as real import-site usage on pkg.go.dev) for the session's new surface: the
chart family (Line/Bar/Pie), MarkdownView, DatePicker, RangeSlider, SetFont/
NewBitmapFont, ContextMenu, Overlay, and CollectA11y. Four carry verified
// Output: blocks (DatePicker.Text, RangeSlider normalisation, SetFont metric
swap, CollectA11y roles); the rest are compile-checked construction examples.
Package coverage stays 100%.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 479ba10 into main Jul 10, 2026
1 check passed
@tannevaled
tannevaled deleted the add-godoc-examples branch July 10, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant