Golang struct結構體內部的反引號該如何定義字段編碼生成json字符串的寫法

package main import (     "encoding/json"     "fmt" ) //父對象 type Human struct {     Name   string  `json:"english_name"` //把struct編碼成json字符串時,Name字段的key是english_name,而不是Name     Age    int     `json:"
相關文章
相關標籤/搜索