Sign in
go
/
tour
/
6b2e5b35ce8ed092eaedc3d2a2294373a639f122
/
.
/
content
/
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)
}