Skip to content

Use 'any' in place of 'interface{}'#217

Merged
jbkempf merged 1 commit into
videolabs:masterfrom
elboulangero:github/go-1.18-any
May 18, 2026
Merged

Use 'any' in place of 'interface{}'#217
jbkempf merged 1 commit into
videolabs:masterfrom
elboulangero:github/go-1.18-any

Conversation

@elboulangero
Copy link
Copy Markdown
Contributor

Modernize the code a bit and use 'any' in place of 'interface{}'.

For reference, the type any was introduced with Go 1.18, cf. https://go.dev/doc/go1.18#language.

This commit was created with the following command:

find -name '*.go' | grep -v 'pb\.go' | xargs sed -i 's/interface{}/any/g'

Modernize the code a bit and use 'any' in place of 'interface{}'.

For reference, the type any was introduced with Go 1.18, cf.
https://go.dev/doc/go1.18#language.

This commit was created with the following command:

    find -name '*.go' | grep -v 'pb\.go' | xargs sed -i 's/interface{}/any/g'
@jbkempf jbkempf merged commit f9b57a0 into videolabs:master May 18, 2026
3 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.

2 participants