exercise1: reader

This commit is contained in:
Aliberk Sandıkçı 2023-07-31 10:20:39 +03:00
parent 728c487b76
commit a3edafb756
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

13
exercises/readers.go Normal file
View file

@ -0,0 +1,13 @@
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{})
}