For omitempty to work properly, nested structs have to be pointers

This commit is contained in:
Deluan
2016-03-02 12:06:57 -05:00
parent 01c68d6802
commit 7c82af75f5
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -62,6 +62,6 @@ func (c *GetIndexesController) Get() {
}
response := responses.NewEmpty()
response.ArtistIndex = res
response.ArtistIndex = &res
c.Ctx.Output.Body(responses.ToXML(response))
}