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{} 代表值可以是任意类型。

 

Refer:有哪些Gin使用技巧

Link:https://www.cnblogs.com/farwish/p/12628549.html

相关文章:

  • 2021-11-10
  • 2021-09-24
  • 2021-07-03
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2021-09-25
  • 2021-07-08
  • 2021-11-09
  • 2022-02-22
  • 2022-01-26
相关资源
相似解决方案