Standard Library

GoImagePng

Go stdlib package — image/png. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Decode()Neutral
#
Signature
Decode(r io.Reader) (image.Image, error)

Decode reads a PNG image from r and returns it as an image.Image.

.DecodeConfig()Neutral
#
Signature
DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns the color model and dimensions of a PNG image without

.Encode()Neutral
#
Signature
Encode(w io.Writer, m image.Image) error

Encode writes the Image m to w in PNG format. Any Image may be

.Encoder.Encode()Neutral
#
Signature
Encoder.Encode(w io.Writer, m image.Image) error

Encode writes the Image m to w in PNG format.

.FormatError.Error()Neutral
#
Signature
FormatError.Error() string

FormatError.Error function.

.Fuzz()Neutral
#
Signature
Fuzz(data []byte) int

Fuzz function.

.UnsupportedError.Error()Neutral
#
Signature
UnsupportedError.Error() string

UnsupportedError.Error function.

.CompressionLevel()Neutral
#
Signature
type CompressionLevel ...

CompressionLevel indicates the compression level.

.Encoder()Neutral
#
Signature
type Encoder ...

Encoder configures encoding PNG images.

.EncoderBuffer()Neutral
#
Signature
type EncoderBuffer ...

EncoderBuffer holds the buffers used for encoding PNG images.

Fully-Qualified Names

FQNField
image/pngfqns[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 ...  # image/png