go 1.18

go.mod 文件 go 1.17 替换为 go 1.18
interface{} 替换为 any

因为 go 当中不存在全局变量这一概念,在低版本颗要用这个方法的话,就需要每个包内都实现一个。

评论列表