Standard Library

GoImageGif

Go stdlib package — image/gif. 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 GIF image from r and returns the first embedded

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

DecodeAll reads a GIF image from r and returns the sequential frames

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

DecodeConfig returns the global color model and dimensions of a GIF image

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

Encode writes the Image m to w in GIF format.

.EncodeAll()Neutral
#
Signature
EncodeAll(w io.Writer, g *GIF) error

EncodeAll writes the images in g to w in GIF format with the

.GIF()Neutral
#
Signature
type GIF ...

GIF represents the possibly multiple images stored in a GIF file.

.Options()Neutral
#
Signature
type Options ...

Options are the encoding parameters.

Fully-Qualified Names

FQNField
image/giffqns[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/gif