From ff8b08bf43f5ee60dc995b60e8505cfe90d0de3c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 16 Apr 2017 00:33:44 +0200 Subject: kiss --- file.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'file.go') diff --git a/file.go b/file.go index 0497c09..e2f5536 100644 --- a/file.go +++ b/file.go @@ -18,8 +18,8 @@ type File struct { } const ( - commentHdr = "untrusted comment: " - verifyWith = "verify with " + commentHdr = "untrusted comment:" + verifyWith = "verify with" pubKey = "%s public key" secKey = "%s secret key" sigFrom = "signature from %s" @@ -88,8 +88,8 @@ func (f File) Bytes() ([]byte, error) { } func (f File) WriteTo(w io.Writer) error { - fmt.Fprintf(w, "%v%v\n", commentHdr, f.Comment) - fmt.Fprintf(w, "%v\n", string(f.B64)) + fmt.Fprintln(w, commentHdr, f.Comment) + fmt.Fprintln(w, string(f.B64)) if f.Body != nil { fmt.Fprintf(w, "%v", string(f.Body)) } -- cgit v1.2.3