Skip to content

replace interface{} → any#2631

Open
n9te9 wants to merge 1 commit intolabstack:masterfrom
n9te9:master
Open

replace interface{} → any#2631
n9te9 wants to merge 1 commit intolabstack:masterfrom
n9te9:master

Conversation

@n9te9
Copy link
Contributor

@n9te9 n9te9 commented Apr 28, 2024

What

replaced interface{} to any.

Why

golang 1.18 support any as type alias for interafce{}.
If echo follow golang support policy, the smarter using any than using interface{}.

Concerns

Impact for an application run the environment that golang version is < golang 1.18.
The application run at environment is under golang 1.18 will be failed to run, since type alias any is supported after golang 1.18.
If echo support the application run at environment is under golang 1.18, this PR should be contained to v5.

@luckycatx
Copy link

@aldas Maybe check this PR

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

Comments