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刪除。