small pixel drawing of a pufferfish existentialcrisis.sh

quote/quote.go

package quote

import (
	"math/rand"
	"time"
)

var quoteCollection []string

func initQuoteCollection() {
	quoteCollection = append(quoteCollection, "It is often said that before you die your life passes before your eyes. It is, in fact, true. It's called living.")
	quoteCollection = append(quoteCollection, "Man always thinks about the past before he dies, as if he were frantically searching for proof that he lived.")
	quoteCollection = append(quoteCollection, "There's no shame in dying for nothing. That's why most people die.")
	quoteCollection = append(quoteCollection, "There are only two days in your entire life that are not 24 hours long.")
	quoteCollection = append(quoteCollection, "And then one day you find ten years have got behind you. No one told you when to run, you missed the starting gun. And you run and you run to catch up with the sun but it's sinking. Racing around to come up behind you again. The sun is the same in a relative way, but you're older. Shorter of breath and one day closer to death.")
	quoteCollection = append(quoteCollection, "Is all that we see or seem, but a dream within a dream?")
	quoteCollection = append(quoteCollection, "Since we're all going to die it's obvious when and how don't matter.")
	quoteCollection = append(quoteCollection, "There's one thing that's real clear to me: no one dies with dignity.")
	quoteCollection = append(quoteCollection, "There is no meaning to life. Knowing that, be happy, be miserable, or both. You can try everything but nothing will make you something, because we are not anything.")
	quoteCollection = append(quoteCollection, "you'll never be this young again.")
	quoteCollection = append(quoteCollection, "tiger got to hunt. bird got to fly. man got to sit and wonder why? why? why? tiger got to sleep. bird got to land. man got to tell himself he understand.")
	quoteCollection = append(quoteCollection, "I was assailed by memories of a life that wasn't mine anymore, but one in which I'd found the simplest and most lasting joys: the smells of summer, the part of town I loved, a certain evening sky, Marie's dresses and the way she laughed.")
	quoteCollection = append(quoteCollection, "Every existing thing is born without reason, prolongs itself out of weakness and dies by chance.")
	quoteCollection = append(quoteCollection, "Life has no meaning the moment you lose the illusion of being eternal.")
	quoteCollection = append(quoteCollection, "All human activities are equivalent. All are on principle doomed to failure.")
	quoteCollection = append(quoteCollection, "Time is too large. It can't be filled up. Everything you plunge into it is stretched and disintegrates.")
	quoteCollection = append(quoteCollection, "All the labor of all the ages, all the devotion, all the inspiration, all the noonday brightness of human genius are destined to extinction.")
	quoteCollection = append(quoteCollection, "And yet sometimes we become the person we most dread. Or maybe we dread most the person we know we are to become.")
	quoteCollection = append(quoteCollection, "Everyone you meet will die. After a few decades of you being dead, people will forget you.")
	quoteCollection = append(quoteCollection, "We have yet to identify any kind of empirical evidence for the persistence of consciousness. It's very likely none of us are actually alive, and that dying and going to sleep are, from a practical standpoint, the exact same thing.")
	quoteCollection = append(quoteCollection, "To cause birth is to cause death.")
	quoteCollection = append(quoteCollection, "On a long enough timeline the survival rate of everything declines to 0.")
	quoteCollection = append(quoteCollection, "Please wake up, we all miss you so much.")
	quoteCollection = append(quoteCollection, "Your memory will become an abstract notion - if it survives at all.")
	quoteCollection = append(quoteCollection, "")
	quoteCollection = append(quoteCollection, "")
}

func GetRandomQuote() string {
	initQuoteCollection()
	rand.Seed(time.Now().UnixNano())
	return quoteCollection[rand.Intn(len(quoteCollection))]
}