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", h.Sum(nil))
}
```
after, I want to add comment to sha1.Write()
for example
```
// Write receives byte array and stores it in digest structure
func (d *digest) Write(p []byte) (nn int, err error) {
... ...
}
```
How about?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.