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
@@ -30,7 +30,7 @@ func (m *MockMediaFile) SetData(j string, size int) {
fmt.Println("ERROR: ", err)
}
for _, a := range l {
m.data[a.Id] = a
m.data[a.ID] = a
}
}
@@ -59,7 +59,7 @@ func (m *MockMediaFile) FindByAlbum(artistId string) (domain.MediaFiles, error)
var res = make(domain.MediaFiles, len(m.data))
i := 0
for _, a := range m.data {
if a.AlbumId == artistId {
if a.AlbumID == artistId {
res[i] = a
i++
}