Sign in
◑
Theme
go
/
website
/
97bcd1ead35ce4ff487a1dc339e792fb6c600b4b
/
.
/
_content
/
tour
/
methods
/
exercise-rot-reader.go
blob: 7138d635bb0cc9a24f9c05bb3c6cc8b88649501f [
file
]
//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)
}