github.com/brownsys/tracing-framework-go@v0.0.0-20161210174012-0542a62412fe/go/darwin_amd64/misc/tour/content/methods/exercise-rot-reader.go (about)

     1  // +build no-build OMIT
     2  
     3  package main
     4  
     5  import (
     6  	"io"
     7  	"os"
     8  	"strings"
     9  )
    10  
    11  type rot13Reader struct {
    12  	r io.Reader
    13  }
    14  
    15  func main() {
    16  	s := strings.NewReader("Lbh penpxrq gur pbqr!")
    17  	r := rot13Reader{s}
    18  	io.Copy(os.Stdout, &r)
    19  }