type H map[string]interface{}以更新为:type H map[string]any

如题,interface{}是任何数据类型,这里新版已经是用any了

讨论数量: 1

是的,1.9以后版本更新为

// H is a shortcut for map[string]interface{}

type H map[string]any

1年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!