armor

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeArmor

func DecodeArmor(armorStr string) (blockType string, headers map[string]string, data []byte, err error)

func EncodeArmor

func EncodeArmor(blockType string, headers map[string]string, data []byte) (string, error)

Types

type ErrEncode added in v1.0.0

type ErrEncode struct {
	Err error
}

ErrEncode represents an error from calling EncodeArmor.

func (ErrEncode) Error added in v1.0.0

func (e ErrEncode) Error() string

func (ErrEncode) Unwrap added in v1.0.0

func (e ErrEncode) Unwrap() error

Jump to

Keyboard shortcuts

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