#3
Go: rewrite interface{}
to any
Golang Go泛型
2021-12-12
Golang GitHub 仓库上的 Issue 49884 all: rewrite interface{}
to any
值得吃瓜。
由于新的泛型机制中引入了 any
关键字, 有人提议将代码中的所有 interface{}
替换为 any
。
相关连接:all: gofmt -w -r 'interface{} -> any' src
目前这个 Issue 还是 Open 状态。