golang interface轉成其餘類型

//i爲interface{},i.(須要轉的類型) //示例 restlt := i.(map[string]interface{}) fmt.Println(restlt["id"])
相關文章
相關標籤/搜索