github.com/brownsys/tracing-framework-go@v0.0.0-20161210174012-0542a62412fe/go/darwin_amd64/misc/tour/content/methods/exercise-reader.go (about) 1 // +build no-build OMIT 2 3 package main 4 5 import "golang.org/x/tour/reader" 6 7 type MyReader struct{} 8 9 // TODO: Add a Read([]byte) (int, error) method to MyReader. 10 11 func main() { 12 reader.Validate(MyReader{}) 13 }