How to print struct variables in console?

Answer • 1 Asked • Feb 6 2020
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"` }

Write your answer...

On a mission to build Next-Gen Community Platform for Developers