This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
products.go
134 lines (131 loc) · 3.86 KB
/
products.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
package main
type Product struct {
Id string `json:"id"`
Image string `json:"image"`
Name string `json:"name"`
Price string `json:"price"`
}
func getProduct(id string) *Product {
for _, product := range products {
if product.Id == id {
return &product
}
}
return nil
}
var products = []Product{
Product{
Id: "1",
Name: "Carrinho Hot Wheels",
Price: "7.90",
Image: "http://iacom.s8.com.br/produtos/01/00/item/123923/8/123923825_1GG.jpg",
},
Product{
Id: "18",
Name: "Docinhos e Bebidas para a Festa",
Price: "786.00",
Image: "http://mlb-s1-p.mlstatic.com/brigadeiro-ou-beijinho-cento-22597-MLB20232317909_012015-F.jpg",
},
Product{
Id: "2",
Name: "Bola de Futebol",
Price: "39.49",
Image: "http://static5.netshoes.net/Produtos/bola-topper-astro-campo/28/D30-0158-028/D30-0158-028_detalhe1.jpg",
},
Product{
Id: "3",
Name: "Chuteira",
Price: "64.90",
Image: "http://static5.netshoes.net/Produtos/chuteira-adidas-f5-tf-society-infantil/72/132-8886-172/132-8886-172_detalhe1.jpg",
},
Product{
Id: "17",
Name: "Cachorro-Quente para a Festa",
Price: "650.00",
Image: "http://a57.foxnews.com/global.fncstatic.com/static/managed/img/876/493/etete5646456.jpg?ve=1&tl=1",
},
Product{
Id: "19",
Name: "Cachorro-Quente para uma criança",
Price: "3.50",
Image: "https://upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Hot_dog_with_mustard.png/640px-Hot_dog_with_mustard.png",
},
Product{
Id: "4",
Name: "Kit para Chá de Cozinha",
Price: "29.90",
Image: "http://images10.tcdn.com.br/img/img_prod/268642/minhas_panelinhas_panela_e_cia_8331_2_20130128094132.jpg",
},
Product{
Id: "5",
Name: "Barbie",
Price: "79.90",
Image: "http://www.hamleys.com/images/_lib/barbie-rock-star-doll-84671-0-1431688775000.jpg",
},
Product{
Id: "13",
Name: "Bicicleta",
Price: "242.90",
Image: "http://www.belasdicas.com/img/fotos/bicicleta%20infantil%203%20anos%206.jpg",
},
Product{
Id: "6",
Name: "Boneca Peppa Pig",
Price: "99.00",
Image: "http://www.angelamagazine.com.br/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/b/o/boneca_peppa_pig_multibrink_3.jpg",
},
Product{
Id: "7",
Name: "Jogos – Alquimia",
Price: "89.90",
Image: "http://mlb-s1-p.mlstatic.com/jogo-alquimia-grow-13-elementos-e-75-experincias-antigo-19664-MLB20175425305_102014-F.jpg",
},
Product{
Id: "8",
Name: "Kit Jogos Educativos ",
Price: "149.90",
Image: "http://www.psicopedagogavaleria.com.br/site/images/stories/kit%20jogos%20educativos%201.jpg",
},
Product{
Id: "9",
Name: "Boneca",
Price: "54.90",
Image: "https://tricae-a.akamaihd.net/p/Milk-Boneca-Girl-Jeans-Milk-7283-47306-1.jpg",
},
Product{
Id: "10",
Name: "Bonecos Patati e Patata",
Price: "163.90",
Image: "http://mlb-s2-p.mlstatic.com/boneco-patati-patata-213801-MLB20404436684_092015-F.jpg",
},
Product{
Id: "11",
Name: "Bonecos – Os Vingadores",
Price: "94.90",
Image: "https://www.toys.com.br/media/product/cf8/kit-4-bonecos-marvel-avengers-vingadores-30-cm-hasbro-a8f.jpg",
},
Product{
Id: "12",
Name: "Lego Clássico",
Price: "198.90",
Image: "http://statics.livrariacultura.net.br/products/capas_lg/919/42889919.jpg",
},
Product{
Id: "14",
Name: "Aluguel Fla-Flu para Festa",
Price: "132.00",
Image: "http://images.centauro.com.br/900x900/77296200/mesa-de-pebolim-klopf-galera-img.jpg",
},
Product{
Id: "15",
Name: "Aluguel Cama Elástica para a Festa",
Price: "227.00",
Image: "http://www.brinquedosrabisco.com.br/uploads/Cama-Elastica.jpg",
},
Product{
Id: "16",
Name: "Aluguel Tobogã para a Festa",
Price: "350.00",
Image: "http://www.iclaz.com.br/foto/GG/250297/1-toboga_7837/locacao-de-brinquedos-inflaveis-toboga-inflavel-festa-de-crianca-aluguel-de-brinquedos-inflaveis.jpg",
},
}