[go-nuts] Re: I want to add comment crypto/sha1

2017-11-09 Thread al14031
I see . Thank you for replying. By the way, is there somewhere you want the document to modify somewhere? I absolutely want to contribute to golang 2017年11月9日木曜日 15時23分15秒 UTC+9 Dave Cheney: > > You cannot add an example to an unexported type, because that type cannot > be constructed from outsi

[go-nuts] I want to add comment crypto/sha1

2017-11-08 Thread al14031
I think this function name does not conform to the contract of golang ``` crypto/sha1/example_test.go func ExampleNew_file() { f, err := os.Open("file.txt") if err != nil { log.Fatal(err) } defer f.Close() h := sha1.New() if _, err := io.Copy(h, f); err != nil { log.Fatal(err) } fmt.Printf("% x