2022年3月19日 · other / blog
go.mod 文件 go 1.17 替换为 go 1.18 interface{} 替换为 any
go.mod
go 1.17
go 1.18
interface{}
any
因为 go 当中不存在全局变量这一概念,在低版本颗要用这个方法的话,就需要每个包内都实现一个。