0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-10 02:10:38 +00:00

feat: print warning logs on stderr

issue: #40
This commit is contained in:
Beatriz Vieira 2022-02-07 20:37:39 -03:00
parent 94fff067a1
commit e64d4ddcc1

View File

@ -1,7 +1,10 @@
package main
import "fmt"
import (
"fmt"
"os"
)
func warnf(format string, values ...interface{}) {
fmt.Printf("WARN: "+format+"\n", values...)
fmt.Fprintf(os.Stderr, "WARN: "+format+"\n", values...)
}