pof

Proof of Freshness: collate proof of an authorship date.

Log | Files | << Repositories


tree 78378522990628c7f023a5659a290d1477386c7c
parent af3b28f6dbda12c57f112327b63627a6d80dd91c
author esote <esote.net@gmail.com> 1563079117 -0500
committer esote <esote.net@gmail.com> 1563079117 -0500
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQTXAxYDuIzimYoNSPuhTmRAjzzC8gUCXSqx0AAKCRChTmRAjzzC
 8nreAP9tw4AH2lIV5D1i724Qt3k4F37G7h8gUQF0v7wRWHvmAAD/S8pOnZA45h4k
 tDAq2gcf5l5PgdpVsgsT1hzf2ELynQg=
 =XVIE
 -----END PGP SIGNATURE-----

Space before dashes to avoid messing with GPG signing

 pof.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pof.go b/pof.go
index 67acb3d..901fe8b 100644
--- a/pof.go
+++ b/pof.go
@@ -52,7 +52,7 @@ func news(parser *gofeed.Parser, count int) {
 			log.Fatalf("couldn't find %d items", count)
 		}
 
-		fmt.Printf("Src: %s (%s)\n---\n", feed.Title, url)
+		fmt.Printf("Src: %s (%s)\n ---\n", feed.Title, url)
 
 		for i := 0; i < count; i++ {
 			fmt.Printf("%s\n", feed.Items[i].Title)
@@ -91,7 +91,7 @@ func nist() {
 		log.Fatal(err)
 	}
 
-	fmt.Printf("Src: NIST Beacon v1 (%s)\n---\n", v1URL)
+	fmt.Printf("Src: NIST Beacon v1 (%s)\n ---\n", v1URL)
 	fmt.Printf("%s\n\n", v1.OutputValue)
 
 	resp, err = http.Get(v2URL)
@@ -120,7 +120,7 @@ func nist() {
 		log.Fatal(err)
 	}
 
-	fmt.Printf("Src: NIST Beacon v2 (%s)\n---\n", v2URL)
+	fmt.Printf("Src: NIST Beacon v2 (%s)\n ---\n", v2URL)
 	fmt.Printf("%s\n\n", v2.Pulse.OutputValue)
 
 }
@@ -160,7 +160,7 @@ func btc() {
 		log.Fatalf("len(btc.Blocks) < %d", depth)
 	}
 
-	fmt.Printf("Src: Blockchain.Info [block depth %d] (%s)\n---\n",
+	fmt.Printf("Src: Blockchain.Info [block depth %d] (%s)\n ---\n",
 		depth, btcURL)
 	fmt.Printf("%s\n\n", btc.Blocks[10].Hash)
 }
@@ -225,7 +225,7 @@ func monero() {
 		log.Fatal(err)
 	}
 
-	fmt.Printf("Src: Moneroblocks.Info [block depth %d] (%s)\n---\n",
+	fmt.Printf("Src: Moneroblocks.Info [block depth %d] (%s)\n ---\n",
 		depth,
 		fmt.Sprintf(monURL, monStats.Height-depth))
 	fmt.Printf("%s\n\n", monBlockHdr.BlockHeader.Hash)