Standard Library

GoEncodingPem

Go stdlib package — encoding/pem. 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(data []byte) (*Block, []byte)

Decode will find the next PEM formatted block (certificate, private key

.Encode()Neutral
#
Signature
Encode(out io.Writer, b *Block) error

Encode writes the PEM encoding of b to out.

.EncodeToMemory()Neutral
#
Signature
EncodeToMemory(b *Block) []byte

EncodeToMemory returns the PEM encoding of b.

.Block()Neutral
#
Signature
type Block ...

A Block represents a PEM encoded structure.

Fully-Qualified Names

FQNField
encoding/pemfqns[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 ...  # encoding/pem