Go stdlib package — compress/gzip. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.NewReader()NeutralNewReader(r io.Reader) (*Reader, error)
NewReader creates a new Reader reading the given reader.
.NewWriterLevel()NeutralNewWriterLevel(w io.Writer, level int) (*Writer, error)
NewWriterLevel is like NewWriter but specifies the compression level instead
.Reader.Close()NeutralReader.Close() error
Close closes the Reader. It does not close the underlying io.Reader.
.Reader.Multistream()NeutralReader.Multistream(ok bool)
Multistream controls whether the reader supports multistream files.
.Reader.Read()NeutralReader.Read(p []byte) (int, error)
Read implements io.Reader, reading uncompressed bytes from its underlying Reader.
.Reader.Reset()NeutralReader.Reset(r io.Reader) error
Reset discards the Reader z's state and makes it equivalent to the
.Writer.Close()NeutralWriter.Close() error
Close closes the Writer by flushing any unwritten data to the underlying
.Writer.Flush()NeutralWriter.Flush() error
Flush flushes any pending compressed data to the underlying writer.
.Writer.Reset()NeutralWriter.Reset(w io.Writer)
Reset discards the Writer z's state and makes it equivalent to the
| FQN | Field | |
|---|---|---|
| compress/gzip | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # compress/gzip