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.
.Decode()NeutralDecode(r io.Reader) (image.Image, error)
Decode reads a GIF image from r and returns the first embedded
.DecodeAll()NeutralDecodeAll(r io.Reader) (*GIF, error)
DecodeAll reads a GIF image from r and returns the sequential frames
.DecodeConfig()NeutralDecodeConfig(r io.Reader) (image.Config, error)
DecodeConfig returns the global color model and dimensions of a GIF image
.Encode()NeutralEncode(w io.Writer, m image.Image, o *Options) error
Encode writes the Image m to w in GIF format.
.EncodeAll()NeutralEncodeAll(w io.Writer, g *GIF) error
EncodeAll writes the images in g to w in GIF format with the
.GIF()Neutraltype GIF ...
GIF represents the possibly multiple images stored in a GIF file.
| FQN | Field | |
|---|---|---|
| image/gif | 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 ... # image/gif