Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces the `sioutil` package. It contains just a `NopCloser` method that is related to https://golang.org/pkg/io/ioutil/#NopCloser. It wraps a io.Writer and returns a io.WriteCloser that does nothing on Close(). This is useful when en/decrypting an io.Writer but completing the en/decryption process should not close the sink. For example: ``` ew := s.EncryptWriter(sioutil.NopCloser(w), nonce, associatedData) defer ew.Close() // This does not close 'w'. ``` updates #7
- Loading branch information