1
0
mirror of https://github.com/coalaura/ffwebp.git synced 2025-07-18 06:14:34 +00:00

Initial commit

This commit is contained in:
Laura
2024-09-08 00:32:52 +02:00
commit fbb5e12442
24 changed files with 943 additions and 0 deletions

24
log.go Normal file
View 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)
}