struct Block
XuAPI
pub struct Block {
pub typ string
pub keys []string
pub vals []string
pub bytes string
pub rest string
}Purpose
PEM (RFC 1421) aligned with `encoding/pem` Decode / EncodeToMemory. No map: optional headers are parallel keys/vals. decode returns a Block with empty typ when no PEM is found ( returns nil, rest=original). Subset: first BEGIN at start-of-line through matching END; no nested scan.
Parameters
typstring- field (string)
keys[]string- field ([]string)
vals[]string- field ([]string)
bytesstring- field (string)
reststring- field (string)