Sign in
go
/
website
/
ceae1e129a598eed5e69f92499c4933eb8d3539d
/
.
/
_content
/
tour
/
methods
/
exercise-rot-reader.go
blob: 21aead5f83132e06adfd360e7b7a40eddf13ee3f [
file
] [
log
] [
blame
]
// +build no-build OMIT
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
r io.Reader
}
func main() {
s := strings.NewReader("Lbh penpxrq gur pbqr!")
r := rot13Reader{s}
io.Copy(os.Stdout, &r)
}