encoding

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadPEMFormat = errors.New("failed to decode PEM block")

ErrBadPEMFormat is the error returned when a parsing error occured while trying to decode a PEM block.

Functions

func DecodePEM

func DecodePEM(data []byte, label string) ([]byte, error)

DecodePEM deserializes a PEM block and returns the bytes contained in it.

func EncodePEM

func EncodePEM(val []byte, label string) ([]byte, error)

EncodePEM serializes any data to the PEM format.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL