Sign in
go
/
website
/
13bd8e02190702fc53623d3e1fb24ae31ba88150
/
.
/
_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)
}