internal

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package internal contains internal methods and constants.

Index

Constants

View Source
const CreationTimeOffset = int64(60 * 60 * 24 * 2)

CreationTimeOffset stores the amount of seconds that a signature may be created in the future, to compensate for clock skew.

Variables

View Source
var ArmorHeaders = map[string]string{
	"Version": constants.ArmorHeaderVersion,
	"Comment": constants.ArmorHeaderComment,
}

ArmorHeaders is a map of default armor headers.

Functions

func TrimWhitespace added in v2.1.0

func TrimWhitespace(input string) string

TrimWhitespace removes whitespace from the end of each line of the input string.

func Unarmor

func Unarmor(input string) (*armor.Block, error)

Unarmor unarmors an armored string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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