mirror of
https://github.com/coalaura/ffwebp.git
synced 2025-07-18 06:14:34 +00:00
Initial commit
This commit is contained in:
24
log.go
Normal file
24
log.go
Normal file
@ -0,0 +1,24 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user