зеркало из https://github.com/golang/pkgsite.git
internal/proxy/testdata: add rsc.io/quote
Change-Id: I7fce0b0af32b6a714e7fd2254c995a8a0169cf01 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/314530 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
Родитель
0ebe34c7d8
Коммит
cbfb973078
|
@ -0,0 +1,14 @@
|
|||
-- go.mod --
|
||||
module rsc.io/quote
|
||||
|
||||
-- LICENSE --
|
||||
$MITLicense
|
||||
|
||||
-- quote.go --
|
||||
// Package quote collects pithy sayings.
|
||||
package quote // import "rsc.io/quote"
|
||||
|
||||
// Hello returns a greeting.
|
||||
func Hello() string {
|
||||
return "Hello, world."
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
-- go.mod --
|
||||
module rsc.io/quote
|
||||
|
||||
-- LICENSE --
|
||||
$MITLicense
|
||||
|
||||
-- quote.go --
|
||||
// Package quote collects pithy sayings.
|
||||
package quote // import "rsc.io/quote"
|
||||
|
||||
// Hello returns a greeting.
|
||||
func Hello() string {
|
||||
return "Hello, world."
|
||||
}
|
||||
|
||||
// Glass returns a useful phrase for world travelers.
|
||||
func Glass() string {
|
||||
// See http://www.oocities.org/nodotus/hbglass.html.
|
||||
return "I can eat glass and it doesn't hurt me."
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
-- go.mod --
|
||||
module rsc.io/quote
|
||||
|
||||
-- LICENSE --
|
||||
$MITLicense
|
||||
|
||||
-- quote.go --
|
||||
// Package quote collects pithy sayings.
|
||||
package quote // import "rsc.io/quote"
|
||||
|
||||
// Hello returns a greeting.
|
||||
func Hello() string {
|
||||
return "Hello, world."
|
||||
}
|
||||
|
||||
// Glass returns a useful phrase for world travelers.
|
||||
func Glass() string {
|
||||
// See http://www.oocities.org/nodotus/hbglass.html.
|
||||
return "I can eat glass and it doesn't hurt me."
|
||||
}
|
||||
|
||||
// Go returns a Go proverb.
|
||||
func Go() string {
|
||||
return "Don't communicate by sharing memory, share memory by communicating."
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
-- go.mod --
|
||||
module rsc.io/quote
|
||||
|
||||
-- LICENSE --
|
||||
$MITLicense
|
||||
|
||||
-- quote.go --
|
||||
// Package quote collects pithy sayings.
|
||||
package quote // import "rsc.io/quote"
|
||||
|
||||
// Hello returns a greeting.
|
||||
func Hello() string {
|
||||
return "Hello, world."
|
||||
}
|
||||
|
||||
// Glass returns a useful phrase for world travelers.
|
||||
func Glass() string {
|
||||
// See http://www.oocities.org/nodotus/hbglass.html.
|
||||
return "I can eat glass and it doesn't hurt me."
|
||||
}
|
||||
|
||||
// Go returns a Go proverb.
|
||||
func Go() string {
|
||||
return "Don't communicate by sharing memory, share memory by communicating."
|
||||
}
|
||||
|
||||
// Opt returns an optimization truth.
|
||||
func Opt() string {
|
||||
// Wisdom from ken.
|
||||
return "If a program is too slow, it must have a loop."
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
-- go.mod --
|
||||
module rsc.io/quote
|
||||
|
||||
-- LICENSE --
|
||||
$MITLicense
|
||||
|
||||
-- quote.go --
|
||||
// Package quote collects pithy sayings.
|
||||
package quote // import "rsc.io/quote"
|
||||
|
||||
import "rsc.io/sampler"
|
||||
|
||||
// Hello returns a greeting.
|
||||
func Hello() string {
|
||||
return sampler.Hello()
|
||||
}
|
||||
|
||||
// Glass returns a useful phrase for world travelers.
|
||||
func Glass() string {
|
||||
// See http://www.oocities.org/nodotus/hbglass.html.
|
||||
return "I can eat glass and it doesn't hurt me."
|
||||
}
|
||||
|
||||
// Go returns a Go proverb.
|
||||
func Go() string {
|
||||
return "Don't communicate by sharing memory, share memory by communicating."
|
||||
}
|
||||
|
||||
// Opt returns an optimization truth.
|
||||
func Opt() string {
|
||||
// Wisdom from ken.
|
||||
return "If a program is too slow, it must have a loop."
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
-- go.mod --
|
||||
module rsc.io/quote
|
||||
|
||||
-- LICENSE --
|
||||
$MITLicense
|
||||
|
||||
-- quote.go --
|
||||
// Package quote collects pithy sayings.
|
||||
package quote // import "rsc.io/quote"
|
||||
|
||||
import "rsc.io/sampler"
|
||||
|
||||
// Hello returns a greeting.
|
||||
func Hello() string {
|
||||
return sampler.Hello()
|
||||
}
|
||||
|
||||
// Glass returns a useful phrase for world travelers.
|
||||
func Glass() string {
|
||||
// See http://www.oocities.org/nodotus/hbglass.html.
|
||||
return "I can eat glass and it doesn't hurt me."
|
||||
}
|
||||
|
||||
// Go returns a Go proverb.
|
||||
func Go() string {
|
||||
return "Don't communicate by sharing memory, share memory by communicating."
|
||||
}
|
||||
|
||||
// Opt returns an optimization truth.
|
||||
func Opt() string {
|
||||
// Wisdom from ken.
|
||||
return "If a program is too slow, it must have a loop."
|
||||
}
|
Загрузка…
Ссылка в новой задаче