You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually in function albumsByArtist, the line albums = append(albums, album)
What did you expect to see?
The line albums = append(albums, album) should be albums = append(albums, alb) instead of album or change naming the variable by var album Album
if err := rows.Scan(&album.ID, &album.Title, &album.Artist,
&album.Price, &album.Quantity); err != nil {
return albums, err
}
The text was updated successfully, but these errors were encountered:
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Apr 11, 2024
What is the URL of the page with the issue?
https://go.dev/doc/database/querying
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Screenshot
What did you do?
Open just the url https://go.dev/doc/database/querying
What did you see happen?
Actually in function albumsByArtist, the line albums = append(albums, album)
What did you expect to see?
The line albums = append(albums, album) should be albums = append(albums, alb) instead of album or change naming the variable by var album Album
if err := rows.Scan(&album.ID, &album.Title, &album.Artist,
&album.Price, &album.Quantity); err != nil {
return albums, err
}
The text was updated successfully, but these errors were encountered: