MCPcopy Create free account
hub / github.com/dreamsofcode-io/zenstats / GetQuote

Method GetQuote

internal/quote/service.go:19–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func (m *Service) GetQuote() Quote {
20 quotes := []Quote{
21 {
22 Author: "Dreams of Code",
23 Quote: "Good things come to those who write Go",
24 },
25 {
26 Author: "Wei Wu Wei",
27 Quote: "Wise men don’t judge – they seek to understand.",
28 },
29 {
30 Quote: "The noble-minded are calm and steady. Little people are forever fussing and fretting.",
31 Author: "Confucius",
32 },
33 {
34 Quote: "The successful warrior is the average man, with laser-like focus.",
35 Author: "Bruce Lee",
36 },
37 {
38 Quote: "The first and the best victory is to conquer self.",
39 Author: "Plato",
40 },
41 {
42 Quote: "To be truly ignorant, be content with your own knowledge.",
43 Author: "Zhuangz",
44 },
45 {
46 Quote: "One must be deeply aware of the impermanence of the world.",
47 Author: "Dogen",
48 },
49 {
50 Quote: "In the midst of chaos, there is also opportunity.",
51 Author: "Sun Tzu",
52 },
53 }
54
55 return quotes[rand.IntN(len(quotes))]
56}

Callers 1

ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected