...
Text file
src/cmd/go/testdata/mod/rsc.io_quote_v3_v3.0.0.txt
1rsc.io/quote/v3@v3.0.0
2
3-- .mod --
4module rsc.io/quote/v3
5
6require rsc.io/sampler v1.3.0
7
8-- .info --
9{"Version":"v3.0.0","Name":"d88915d7e77ed0fd35d0a022a2f244e2202fd8c8","Short":"d88915d7e77e","Time":"2018-07-09T15:34:46Z"}
10-- go.mod --
11module rsc.io/quote/v3
12
13require rsc.io/sampler v1.3.0
14
15-- quote.go --
16// Copyright 2018 The Go Authors. All rights reserved.
17// Use of this source code is governed by a BSD-style
18// license that can be found in the LICENSE file.
19
20// Package quote collects pithy sayings.
21package quote // import "rsc.io/quote"
22
23import "rsc.io/sampler"
24
25// Hello returns a greeting.
26func HelloV3() string {
27 return sampler.Hello()
28}
29
30// Glass returns a useful phrase for world travelers.
31func GlassV3() string {
32 // See http://www.oocities.org/nodotus/hbglass.html.
33 return "I can eat glass and it doesn't hurt me."
34}
35
36// Go returns a Go proverb.
37func GoV3() string {
38 return "Don't communicate by sharing memory, share memory by communicating."
39}
40
41// Opt returns an optimization truth.
42func OptV3() string {
43 // Wisdom from ken.
44 return "If a program is too slow, it must have a loop."
45}
View as plain text