mirror of
https://github.com/coalaura/ffwebp.git
synced 2025-07-17 22:04:35 +00:00
25 lines
278 B
Go
25 lines
278 B
Go
![]() |
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)
|
||
|
}
|