Source file tour/methods/exercise-reader.go

     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  }
    14  

View as plain text