format

package
v0.0.0-...-bf04358 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Copright 2022 simplesig authors Heavily inspired by age

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeString

func DecodeString(s string) ([]byte, error)

Types

type Header struct {
	Signatures []*SignatureBlock
}

func Parse

func Parse(input io.Reader) (*Header, io.Reader, error)

func (*Header) Marshal

func (h *Header) Marshal(w io.Writer) error

type SignatureBlock

type SignatureBlock struct {
	Type string
	Args []string
	Body []byte
}

func (*SignatureBlock) Marshal

func (s *SignatureBlock) Marshal(w io.Writer) error

Jump to

Keyboard shortcuts

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