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:
parent
c18f2d9ac4
commit
90adb3088e
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user