dubbo-go-pixiu icon indicating copy to clipboard operation
dubbo-go-pixiu copied to clipboard

optimize: replace interface{} by any

Open AlexStocks opened this issue 8 months ago • 1 comments

What would you like to be added:

Why is this needed:

Go 1.18 introduced the any type as an alias to interface{}. To keep our codebase in line with current best practices, we should format all existing code to use any instead of interface{} and forbid uses of interface{} through a linter/gofmt.

ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23811 https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/29072

Add a go-lint ci to check the usage of interface{}.

AlexStocks avatar Apr 26 '25 04:04 AlexStocks

ref PR https://github.com/apache/dubbo-go/pull/2848

Please change repo dubbo-go-pixiu-samples too.

AlexStocks avatar Apr 26 '25 04:04 AlexStocks