Close closes ra's reader, returning any resulting error.
()
| 1058 | |
| 1059 | // Close closes ra's reader, returning any resulting error. |
| 1060 | func (ra ReadAutoCloser) Close() error { |
| 1061 | if ra.r == nil { |
| 1062 | return nil |
| 1063 | } |
| 1064 | return ra.r.Close() |
| 1065 | } |
| 1066 | |
| 1067 | // Read reads up to len(b) bytes from ra's reader into b. It returns the number |
| 1068 | // of bytes read and any error encountered. At end of file, Read returns 0, |