Skip to content

Conversation

@mpyw
Copy link
Owner

@mpyw mpyw commented Dec 14, 2025

Summary

  • Remove GoString from Inspection and BoolInspection
  • Reimplement GoString for key[V] and boolKey to output valid Go expressions with functional option format
    • feature.New[string](feature.WithName("key-name"))
    • feature.NewBool(feature.WithName("flag-name"))
  • Update README with background on Go official proposal (proposal: context: add generic Key type golang/go#49189) and design decisions (Sealed Interface pattern, empty struct optimization avoidance)

Test plan

  • go test ./... passes
  • golangci-lint run passes
  • GoString output is validated to compile with go/types

🤖 Generated with Claude Code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@codecov
Copy link

codecov bot commented Dec 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (375ee78) to head (0b85ee5).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         3    +1     
  Lines          113       108    -5     
=========================================
- Hits           113       108    -5     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

Output is now a valid Go expression like:
  feature.New[string](feature.WithName("key-name"))
  feature.NewBool(feature.WithName("flag-name"))

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add "Background: Go Official Proposal" section explaining #49189
- Add "Design Decisions" section covering Sealed Interface pattern
- Explain why struct-based approach has initialization vulnerability
- Document empty struct optimization avoidance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@mpyw mpyw merged commit 13a0bcf into main Dec 14, 2025
12 checks passed
@mpyw mpyw deleted the release-v0.4.0 branch December 14, 2025 06:29
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.

2 participants