Sign in
go
/
website
/
97c56edbf39ac4976aad3862fbd48c2aaa989a9a
/
.
/
_content
/
tour
/
methods
/
exercise-rot-reader.go
blob: 7138d635bb0cc9a24f9c05bb3c6cc8b88649501f [
file
] [
log
] [
blame
]
//go:build nobuild || 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)
}