Documentation
¶
Overview ¶
Package pem wraps encoding/pem as a codec.Codec implementation. PEM is block-structured: each wire message is a typed block ("CERTIFICATE", "PRIVATE KEY", etc.), so the codec operates on *pem.Block values. It is a codec.StreamingCodec too: its stream decoder hands one block per Decode — a certificate chain read as encoding/pem.Decode would read it in a loop — and its stream encoder writes one block per Encode.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //: register the singleton and expose it as a typed package var. Codec codec.Codec = codec.Register(&pemCodec{extensions: extensions}) )
Package-level state: the codec singleton, built with its hoisted extension table — the initialiser names the table, which is what orders it before Register reads it (see core/data/codec.Register).
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.