Skip to content

chore: replace interface{} with any for modernization#7571

Merged
mohammed90 merged 1 commit intocaddyserver:masterfrom
tsinglua:master
Apr 11, 2026
Merged

chore: replace interface{} with any for modernization#7571
mohammed90 merged 1 commit intocaddyserver:masterfrom
tsinglua:master

Conversation

@tsinglua
Copy link
Copy Markdown
Contributor

@tsinglua tsinglua commented Mar 16, 2026

Assistance Disclosure

No AI was used.

This change replaces occurrences of interface{} with the predeclared identifier any, introduced in Go 1.18 as an alias for interface{}.

As noted in the Go 1.18 Release Notes:
This improves readability and aligns the codebase with modern Go conventions.

Signed-off-by: tsinglua <tsinglua@outlook.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 16, 2026

CLA assistant check
All committers have signed the CLA.

@mohammed90
Copy link
Copy Markdown
Member

mohammed90 commented Mar 16, 2026

You seem to have overwritten the LLM disclosure. Please disclose use of AI, if any.

@tsinglua
Copy link
Copy Markdown
Contributor Author

You seem to have overwritten the LLM disclosure. Please disclose use of AI, if any.

Oh. Thanks for your notice.

Modified. No AI was used.

@tsinglua
Copy link
Copy Markdown
Contributor Author

You seem to have overwritten the LLM disclosure. Please disclose use of AI, if any.

@mohammed90 Hi, Could you please review this PR at your convenience? Thank you very much.

@mohammed90 mohammed90 changed the title refactor: replace interface{} with any for clarity and modernization chore: replace interface{} with any for modernization Apr 11, 2026
Copy link
Copy Markdown
Member

@mohammed90 mohammed90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mohammed90 mohammed90 merged commit 0722cf6 into caddyserver:master Apr 11, 2026
25 checks passed
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.

3 participants