sdk/golang/Standard Library/GoCompressZlib
Standard Library

GoCompressZlib

Go stdlib package — compress/zlib. 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) (io.ReadCloser, error)

NewReader creates a new ReadCloser.

.NewReaderDict()Neutral
#
Signature
NewReaderDict(r io.Reader, dict []byte) (io.ReadCloser, error)

NewReaderDict is like NewReader but uses a preset dictionary.

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

NewWriter creates a new Writer.

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

NewWriterLevel is like NewWriter but specifies the compression level instead

.NewWriterLevelDict()Neutral
#
Signature
NewWriterLevelDict(w io.Writer, level int, dict []byte) (*Writer, error)

NewWriterLevelDict is like NewWriterLevel but specifies a dictionary to

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

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

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

Flush flushes the Writer to its underlying io.Writer.

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

Reset clears the state of the Writer z such that it is equivalent to its

.Writer.Write()Neutral
#
Signature
Writer.Write(p []byte) (int, error)

Write writes a compressed form of p to the underlying io.Writer. The

.Resetter()Neutral
#
Signature
type Resetter ...

Resetter resets a ReadCloser returned by NewReader or NewReaderDict

Fully-Qualified Names

FQNField
compress/zlibfqns[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/zlib