sdk/golang/Standard Library/GoCompressGzip
Standard Library

GoCompressGzip

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.

Other Methods

.NewReader()Neutral
#
Signature
NewReader(r io.Reader) (*Reader, error)

NewReader creates a new Reader reading the given reader.

.NewWriter()Neutral
#
Signature
NewWriter(w io.Writer) *Writer

NewWriter returns a new Writer.

.NewWriterLevel()Neutral
#
Signature
NewWriterLevel(w io.Writer, level int) (*Writer, error)

NewWriterLevel is like NewWriter but specifies the compression level instead

.Reader.Close()Neutral
#
Signature
Reader.Close() error

Close closes the Reader. It does not close the underlying io.Reader.

.Reader.Multistream()Neutral
#
Signature
Reader.Multistream(ok bool)

Multistream controls whether the reader supports multistream files.

.Reader.Read()Neutral
#
Signature
Reader.Read(p []byte) (int, error)

Read implements io.Reader, reading uncompressed bytes from its underlying Reader.

.Reader.Reset()Neutral
#
Signature
Reader.Reset(r io.Reader) error

Reset discards the Reader z's state and makes it equivalent to the

.Writer.Close()Neutral
#
Signature
Writer.Close() error

Close closes the Writer by flushing any unwritten data to the underlying

.Writer.Flush()Neutral
#
Signature
Writer.Flush() error

Flush flushes any pending compressed data to the underlying writer.

.Writer.Reset()Neutral
#
Signature
Writer.Reset(w io.Writer)

Reset discards the Writer z's state and makes it equivalent to the

Fully-Qualified Names

FQNField
compress/gzipfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # compress/gzip