-
Notifications
You must be signed in to change notification settings - Fork 2
/
cat.go
65 lines (58 loc) · 1.44 KB
/
cat.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
package cat
import (
"html/template"
)
// TektonCat holds information about a cat that has been associated with a Tekton release
type TektonCat struct {
// Name is the name of this cat
Name string
// DisplayName is the fancy display name of this cat
DisplayName template.HTML
// Image is the path to an image on disk that represents this cat
Image string
// Release is the release of Tekton that this cat was associated with
Release string
}
func GetCatsOfTekton() []TektonCat {
// rainbowCats is a a strange variable name b/c until we add the rainbow lib, they're just regular cats
rainbowCats := []TektonCat{}
for _, cat := range catsOfTekton {
rainbowCats = append(rainbowCats, TektonCat{
DisplayName: template.HTML(cat.Name),
Name: cat.Name,
Image: cat.Image,
Release: cat.Release,
})
}
return rainbowCats
}
// catsOfTekton are some wonderful cats
var catsOfTekton = []TektonCat{{
Name: "Acadia",
Image: "acadia_0.3.1.jpeg",
Release: "v0.4.0",
}, {
Name: "Annabelle",
Image: "annabelle_0.6.0.jpeg",
Release: "v0.6.0",
}, {
Name: "Chip",
Image: "chip_0.5.0.jpeg",
Release: "v0.5.0",
}, {
Name: "Coco",
Image: "coco_0.20.0.jpeg",
Release: "v0.20.0",
}, {
Name: "Dip",
Image: "dip_0.7.0.jpeg",
Release: "v0.7.0",
}, {
Name: "Meatball",
Image: "meatball_0.16.3.jpeg",
Release: "v0.16.3",
}, {
Name: "Yoshimi",
Image: "yoshimi_0.4.0.jpeg",
Release: "v0.4.0",
}}