Samples
Samples
exercise-rot-reader
Language: Gold, Platform: Echoes, Category: Tour of Go
https://github.com/remobjects/ElementsSamples/tree/master/Gold/Echoes/Tour of Go/exercise-rot-reader
-
exercise-rot-reader.Echoes
-
References
- #
- ..\Tour\Tour.Echoes.elements
- Source Files
-
Other Files
-
References
exercise-rot-reader.go
// Ignored build directive: +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)
}
