Sign in
◑
Theme
go
/
website
/
80bb241c7a9cebfcd7b9fae9e47be9ce75f58196
/
.
/
_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)
}