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