From f9164f3f99edf4ae8343d6c67b915e788a5624f8 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Sun, 15 Feb 2015 21:04:59 +0100 Subject: initial commit for pki pki is a small library to make building some of the crypto stuff easier in go. --- pem_marshal.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pem_marshal.go (limited to 'pem_marshal.go') diff --git a/pem_marshal.go b/pem_marshal.go new file mode 100644 index 0000000..c9be63d --- /dev/null +++ b/pem_marshal.go @@ -0,0 +1,15 @@ +package pkilib + +import ( + "io" +) + +type ( + marshalledPemBlock []byte +) + +// This function writes the marshalled pem block to a writer and returns the +// number of written bytes and eventual errors. +func (b marshalledPemBlock) WriteTo(stream io.Writer) (int, error) { + return stream.Write(b) +} -- cgit v1.2.3-70-g09d2