Skip to content

refactor: replace interface{} with any (Go 1.18+)#2021

Merged
bwplotka merged 2 commits into
prometheus:mainfrom
MD-Mushfiqur123:refactor/interface-to-any
Jun 21, 2026
Merged

refactor: replace interface{} with any (Go 1.18+)#2021
bwplotka merged 2 commits into
prometheus:mainfrom
MD-Mushfiqur123:refactor/interface-to-any

Conversation

@MD-Mushfiqur123

Copy link
Copy Markdown
Contributor

Replace interface{} with the any alias introduced in Go 1.18.

12 files updated.

@kakkoyun

Copy link
Copy Markdown
Member

@MD-Mushfiqur123 There are several trivial CI failures that needs to be fixed.

MD-Mushfiqur123 and others added 2 commits June 20, 2026 15:12
Signed-off-by: MD-Mushfiqur123 <mushfiqur@users.noreply.github.com>
Signed-off-by: MD-Mushfiqur123 <mushfiqur@users.noreply.github.com>
@MD-Mushfiqur123 MD-Mushfiqur123 force-pushed the refactor/interface-to-any branch from 1b2868f to 591c692 Compare June 20, 2026 09:13
@MD-Mushfiqur123

Copy link
Copy Markdown
Contributor Author

Hi @kakkoyun, the CI failures have been fixed:

  • DCO — Both commits now have \Signed-off-by\ lines
  • gofmt lint — \�pi/prometheus/v1/api.go\ is now properly formatted

Please re-review when you get a chance. Thanks!

@bwplotka bwplotka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@bwplotka bwplotka merged commit 7456005 into prometheus:main Jun 21, 2026
15 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.

4 participants