1
0
mirror of https://github.com/coalaura/ffwebp.git synced 2025-07-17 22:04:35 +00:00
Files
ffwebp/log.go

25 lines
278 B
Go
Raw Normal View History

2024-09-08 00:32:52 +02:00
package main
import (
"fmt"
"os"
)
var (
silent bool
)
func info(fm string, args ...interface{}) {
if silent {
return
}
fmt.Printf(fm+"\n", args...)
}
func fatalf(code int, fm string, args ...interface{}) {
fmt.Printf("ERROR: "+fm+"\n", args...)
os.Exit(code)
}