Files
gitea-release-resource/fmt.go
2015-01-31 23:04:49 +00:00

18 lines
286 B
Go

package resource
import (
"fmt"
"os"
"github.com/mitchellh/colorstring"
)
func Fatal(doing string, err error) {
Sayf(colorstring.Color("[red]error %s: %s\n"), doing, err)
os.Exit(1)
}
func Sayf(message string, args ...interface{}) {
fmt.Fprintf(os.Stderr, message, args...)
}