13 lines
203 B
Go
13 lines
203 B
Go
package main
|
|
|
|
//import "golang.org/x/tour/reader"
|
|
|
|
type MyReader struct{}
|
|
|
|
func (ret MyReader) Read(b []byte) (int, error) {
|
|
copy(b, "A")
|
|
return 1, nil
|
|
}
|
|
func main() {
|
|
//reader.Validate(MyReader{})
|
|
}
|