package pem
Import Path
encoding/pem (on golang.org and go.dev)
Dependency Relation
imports 6 packages, and imported by 3 packages
Involved Source Files
d-> pem.go
Exported Type Names
Exported Values
func
Decode(data []
byte) (p *
Block, rest []
byte)
Decode will find the next PEM formatted block (certificate, private key
etc) in the input. It returns that block and the remainder of the input. If
no PEM data is found, p is nil and the whole of the input is returned in
rest.
func
EncodeToMemory(b *
Block) []
byte
EncodeToMemory returns the PEM encoding of b.
If b has invalid headers and cannot be encoded,
EncodeToMemory returns nil. If it is important to
report details about this error case, use Encode instead.
 |
The pages are generated with Golds v0.1.6. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |