How can I print (in the console) the Id
, Title
, Name
, etc. of this struct in Golang?
type Project struct {
Id int64 `json:"project_id"`
Title string `json:"title"`
Name string `json:"name"`
Data Data `json:"data"`
Commits Commits `json:"commits"`
}
转载于:https://stackoverflow.com/questions/24512112/how-to-print-struct-variables-in-console