gin.H 中的 H 是对 map[string]interface{} 定义的新类型,用来简化生成 map 数据时的书写。
// H is a shortcut for map[string]interface{} type H map[string]interface{}
map[string]interface{} 中的 string 代表键的类型,interface{} 代表值可以是任意类型。
gin.H 中的 H 是对 map[string]interface{} 定义的新类型,用来简化生成 map 数据时的书写。
// H is a shortcut for map[string]interface{} type H map[string]interface{}
map[string]interface{} 中的 string 代表键的类型,interface{} 代表值可以是任意类型。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。