-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.go
105 lines (94 loc) · 1.86 KB
/
utils.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package main
func addDummyData(movies []Movie) []Movie {
movies = append(movies, Movie{
Id: "1",
ISBN: "978-0061120084",
Title: "To Kill a Mockingbird",
Director: &Director{
Firstname: "Robert",
Lastname: "Mulligan",
},
})
movies = append(movies, Movie{
Id: "2",
ISBN: "978-0679746041",
Title: "One Hundred Years of Solitude",
Director: &Director{
Firstname: "Gabriel",
Lastname: "García Márquez",
},
})
movies = append(movies, Movie{
Id: "3",
ISBN: "978-1451673319",
Title: "The Great Gatsby",
Director: &Director{
Firstname: "Baz",
Lastname: "Luhrmann",
},
})
movies = append(movies, Movie{
Id: "4",
ISBN: "978-0143110157",
Title: "The Catcher in the Rye",
Director: &Director{
Firstname: "J.D.",
Lastname: "Salinger",
},
})
movies = append(movies, Movie{
Id: "5",
ISBN: "978-1400031702",
Title: "Lolita",
Director: &Director{
Firstname: "Stanley",
Lastname: "Kubrick",
},
})
movies = append(movies, Movie{
Id: "6",
ISBN: "978-0385333849",
Title: "Slaughterhouse-Five",
Director: &Director{
Firstname: "George",
Lastname: "Roy Hill",
},
})
movies = append(movies, Movie{
Id: "7",
ISBN: "978-0307743662",
Title: "The Help",
Director: &Director{
Firstname: "Tate",
Lastname: "Taylor",
},
})
movies = append(movies, Movie{
Id: "8",
ISBN: "978-0307388138",
Title: "The Road",
Director: &Director{
Firstname: "John",
Lastname: "Hillcoat",
},
})
movies = append(movies, Movie{
Id: "9",
ISBN: "978-0142437247",
Title: "Moby-Dick",
Director: &Director{
Firstname: "John",
Lastname: "Huston",
},
})
movies = append(movies, Movie{
Id: "10",
ISBN: "978-0684801469",
Title: "The Bell Jar",
Director: &Director{
Firstname: "Julie",
Lastname: "Taymor",
},
})
return movies
}