Reset discards the Writer z's state and makes it equivalent to the result of its original state from NewWriter or NewWriterLevel, but writing to w instead. This permits reusing a Writer rather than allocating a new one.
Reset is referenced in 47 repositoriesgithub.com/golang/go
- 1 reference in src/compress/gzip/gzip_test.go
- 2 references in middleware/compress.go