1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-07 11:36:25 +02:00

Fix logging in Go example

This commit is contained in:
DarthSim 2019-01-18 17:32:19 +06:00
parent c18f2d9ac4
commit 90adb3088e

View File

@ -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"