internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 4 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 TrimNewlines

func TrimNewlines(input string) string

TrimNewlines 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