rsc.io/quote@v1.5.2/quote.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package quote collects pithy sayings. 6 package quote // import "rsc.io/quote" 7 8 import "rsc.io/sampler" 9 10 // Hello returns a greeting. 11 func Hello() string { 12 return sampler.Hello() 13 } 14 15 // Glass returns a useful phrase for world travelers. 16 func Glass() string { 17 // See http://www.oocities.org/nodotus/hbglass.html. 18 return "I can eat glass and it doesn't hurt me." 19 } 20 21 // Go returns a Go proverb. 22 func Go() string { 23 return "Don't communicate by sharing memory, share memory by communicating." 24 } 25 26 // Opt returns an optimization truth. 27 func Opt() string { 28 // Wisdom from ken. 29 return "If a program is too slow, it must have a loop." 30 }