summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-09-06 00:56:54 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-09-06 00:56:54 +0200
commitdfcbec8ec9e41727d3fd24259f0a699f10b08620 (patch)
treea7de313a61e94401b27e7ffdb1724e6c716a3065
parent05e44aa867b85303e21136f9eed9e99923f9bdf0 (diff)
...
-rw-r--r--theo.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/theo.go b/theo.go
index 6b455d0..09325da 100644
--- a/theo.go
+++ b/theo.go
@@ -11,8 +11,8 @@ import (
"time"
)
-// Talk contains known quotes
-var Talk = []string{
+// Quotes from Theo
+var Quotes = []string{
`Write more code.`,
`Make more commits.`,
`That's because you have been slacking.`,
@@ -131,10 +131,5 @@ var Talk = []string{
// Random quote
func Random() string {
rand.Seed(time.Now().UnixNano())
- return Talk[rand.Intn(len(Talk))]
-}
-
-// Quote for backward compatibility, use Random instead
-func Quote() string {
- return Random()
+ return Quotes[rand.Intn(len(Quotes))]
}