Skip to content

refactor: rename NewHandler to NewTextHandler - #109

Merged
lmittmann merged 1 commit into
mainfrom
new-text-handler
Jul 12, 2026
Merged

lmittmann merged 1 commit into
mainfrom
new-text-handler

Conversation

@lmittmann

Copy link
Copy Markdown
Owner

Renames NewHandler to NewTextHandler. NewHandler remains as a deprecated wrapper with the same signature, so existing code keeps working.

The wrapper carries a //go:fix inline directive, so go fix (Go 1.26+) and gopls automatically rewrite tint.NewHandler(w, opts) call sites to tint.NewTextHandler(w, opts).

Also updates all call sites in the package docs, tests, and README.

🤖 Generated with Claude Code

Keep NewHandler as a deprecated wrapper with a //go:fix inline
directive so go fix (Go 1.26+) rewrites call sites automatically.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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