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