Deprecate CheckFatal in favour of assert package.

This commit is contained in:
Kyle Isom 2016-04-28 13:16:47 -07:00
parent f93f662d7e
commit a01b7ae657
1 changed files with 1 additions and 10 deletions

View File

@ -13,7 +13,7 @@ var progname = filepath.Base(os.Args[0])
// ProgName returns what lib thinks the program name is, namely the
// basename of of argv0.
//
// It is similar to the Linux __progname.
// It is similar to the Linux __progname function.
func ProgName() string {
return progname
}
@ -55,15 +55,6 @@ func Err(exit int, err error, format string, a ...interface{}) {
os.Exit(exit)
}
// CheckFatal calls Err if err isn't nil.
func CheckFatal(err error, format string, a ...interface{}) {
if err == nil {
return
}
Err(ExitFailure, err, format, a...)
}
// Itoa provides cheap integer to fixed-width decimal ASCII. Give a
// negative width to avoid zero-padding. Adapted from the 'itoa'
// function in the log/log.go file in the standard library.