go 1.18 go.mod 文件 go 1.17 替换为 go 1.18 interface{} 替换为 因为 go 当中不存在全局变量这一概念,在低版本颗要用这个方法的话,就需要每个包内都实现一个。 Coding abandon1a2b 2022-03-19 12:21:24 更新于 2025-12-30 20:46:43 0 回复 0 赞 256 浏览 go.mod 文件 go 1.17 替换为 go 1.18 interface{} 替换为 any 因为 go 当中不存在全局变量这一概念,在低版本颗要用这个方法的话,就需要每个包内都实现一个。