Skip to content

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

Closed
elboulangero wants to merge 1 commit into
videolabs:masterfrom
elboulangero:github/go-1.18-any
Closed

Use 'any' in place of 'interface{}'#215
elboulangero wants to merge 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
Copy link
Copy Markdown
Collaborator

jbkempf commented May 8, 2026

LGTM

@elboulangero elboulangero deleted the github/go-1.18-any branch May 8, 2026 09:01
@elboulangero
Copy link
Copy Markdown
Contributor Author

Oups, deleted branch by mistake, creating a new MR then: #217

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