Add jlp utility.

This commit is contained in:
Kyle Isom
2015-10-26 16:37:44 -07:00
parent 387428a49b
commit 7bd65cea87
4 changed files with 105 additions and 0 deletions

View File

@@ -9,6 +9,12 @@ import (
var progname = filepath.Base(os.Args[0])
// ProgName returns what lib thinks the program name is, namely the
// basename of of argv0.
func ProgName() string {
return progname
}
// Warnx displays a formatted error message to standard error, à la
// warnx(3).
func Warnx(format string, a ...interface{}) (int, error) {