Browse Source

Fix logging in Go example

DarthSim 6 years ago
parent
commit
90adb3088e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      examples/signature.go

+ 3 - 2
examples/signature.go

@@ -6,6 +6,7 @@ import (
 	"encoding/base64"
 	"encoding/hex"
 	"fmt"
+	"log"
 )
 
 func main() {
@@ -16,11 +17,11 @@ func main() {
 	var err error
 
 	if keyBin, err = hex.DecodeString(key); err != nil {
-		logFatal("Key expected to be hex-encoded string")
+		log.Fatal("Key expected to be hex-encoded string")
 	}
 
 	if saltBin, err = hex.DecodeString(salt); err != nil {
-		logFatal("Salt expected to be hex-encoded string")
+		log.Fatal("Salt expected to be hex-encoded string")
 	}
 
 	resize := "fill"