Renamed Id to ID, following GoLang convention

This commit is contained in:
Deluan
2020-01-09 23:33:01 -05:00
committed by Deluan Quintão
parent 018352463f
commit 40904b220e
35 changed files with 122 additions and 122 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ func (m *MockAlbum) SetData(j string, size int) {
fmt.Println("ERROR: ", err)
}
for _, a := range m.all {
m.data[a.Id] = &a
m.data[a.ID] = &a
}
}
@@ -66,7 +66,7 @@ func (m *MockAlbum) FindByArtist(artistId string) (domain.Albums, error) {
var res = make(domain.Albums, len(m.data))
i := 0
for _, a := range m.data {
if a.ArtistId == artistId {
if a.ArtistID == artistId {
res[i] = *a
i++
}