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.
.Decode()NeutralDecode(r io.Reader) (image.Image, error)
Decode reads a PNG image from r and returns it as an image.Image.
.DecodeConfig()NeutralDecodeConfig(r io.Reader) (image.Config, error)
DecodeConfig returns the color model and dimensions of a PNG image without
.Encode()NeutralEncode(w io.Writer, m image.Image) error
Encode writes the Image m to w in PNG format. Any Image may be
.Encoder.Encode()NeutralEncoder.Encode(w io.Writer, m image.Image) error
Encode writes the Image m to w in PNG format.
.UnsupportedError.Error()NeutralUnsupportedError.Error() string
UnsupportedError.Error function.
.CompressionLevel()Neutraltype CompressionLevel ...
CompressionLevel indicates the compression level.
.EncoderBuffer()Neutraltype EncoderBuffer ...
EncoderBuffer holds the buffers used for encoding PNG images.
| FQN | Field | |
|---|---|---|
| image/png | 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/png