Change structure aliasing order.

This commit is contained in:
go-jet 2019-06-26 10:30:31 +02:00
parent 8be33b8774
commit b7ba58200e
9 changed files with 402 additions and 406 deletions

View file

@ -57,8 +57,8 @@ func main() {
model.Actor
Films []struct {
model.Film
Language model.Language
Category []model.Category
Language model.Language
Categories []model.Category
}
}
@ -72,8 +72,8 @@ func main() {
var dest2 []struct {
model.Category
Film []model.Film
Actor []model.Actor
Films []model.Film
Actors []model.Actor
}
err = stmt.Query(db, &dest2)