how to convert a struct to a map using a specific field as key?

前端 未结 0 1874
猫巷女王i
猫巷女王i 2020-12-11 07:42

I\'m trying to convert this struct

type news struct {
    Id       string `json:"id"`
    Title    string `json:"title"`
    Author   stri         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题