Skip to content

docs: surface typed struct parameters - #27

Merged
mpyw merged 1 commit into
mainfrom
docs/struct-params
Aug 18, 2026
Merged

docs: surface typed struct parameters#27
mpyw merged 1 commit into
mainfrom
docs/struct-params

Conversation

@mpyw

@mpyw mpyw commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Build already accepts a struct (or an expr.Scope), not only a map[string]any, so callers can pass parameters with Go's type checking rather than untyped map values. This makes that discoverable without any behavior change:

  • a package-level Example_structParams (embedded-field promotion + qualified access), which renders in the package Examples section;
  • a note in the README synopsis that Build accepts a map, a struct, or an expr.Scope.

Docs/example only.

🤖 Generated with Claude Code

Build already accepts a struct (or expr.Scope), not only a map[string]any, so
callers can pass parameters with Go's type checking. Make that discoverable: add
a package-level Example_structParams (embedded-field promotion + qualified
access) and a note in the README synopsis. Docs only; no behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAydPGeSHjZvJv22oz4P6d
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.52%. Comparing base (720aa55) to head (031133f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage   96.52%   96.52%           
=======================================
  Files          11       11           
  Lines         951      951           
=======================================
  Hits          918      918           
  Misses         21       21           
  Partials       12       12           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mpyw
mpyw merged commit 3df3f5e into main Aug 18, 2026
4 checks passed
@mpyw
mpyw deleted the docs/struct-params branch August 19, 2026 06:49
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