toolkit: add godoc examples for the v0.10-v0.21 APIs#19
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds runnable
Examplefunctions documenting the session's new API surface — they render on pkg.go.dev and are compile/output-checked bygo test.Covered: the chart family (
LineChart/BarChart/PieChart),MarkdownView,DatePicker,RangeSlider,SetFont/NewBitmapFont,ContextMenu,Overlay, andCollectA11y. Four carry verified// Output:blocks (DatePicker.Text, RangeSlider normalisation, the SetFont metric swap, CollectA11y roles); the rest are compile-checked construction examples in an externaltoolkit_testpackage so they read as real import-site usage.Package coverage stays 100%;
go vetclean; wasm builds. The global-font-mutating SetFont example restores the default, so the suite is unaffected.🤖 Generated with Claude Code