dubbo-go-pixiu
dubbo-go-pixiu copied to clipboard
optimize: replace interface{} by any
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{}.
ref PR https://github.com/apache/dubbo-go/pull/2848
Please change repo dubbo-go-pixiu-samples too.