diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-07 21:58:33 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-07 21:58:33 -0400 |
| commit | eeb7fd0d1ed91c8f8e62572b1b5e9ef0648bffd0 (patch) | |
| tree | 000fcee1a7741ba6c5f799732b083049ff054070 /xgb_help.go | |
| parent | d16723697e0450c3d410a5637eec40242c45b4f8 (diff) | |
more clean up. use log instead of fmt.Print to stderr. bug fix for event blocking (a hack fix for now).
Diffstat (limited to 'xgb_help.go')
| -rw-r--r-- | xgb_help.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xgb_help.go b/xgb_help.go index 6d07938..6c3b40a 100644 --- a/xgb_help.go +++ b/xgb_help.go @@ -1,7 +1,6 @@ package xgb import ( - "errors" "fmt" "strings" ) @@ -17,10 +16,10 @@ func sprintf(format string, v ...interface{}) string { return fmt.Sprintf(format, v...) } -// newError is just a wrapper for errors.New. Exists for the same reason +// errorf is just a wrapper for fmt.Errorf. Exists for the same reason // that 'stringsJoin' and 'sprintf' exists. -func newError(format string, v ...interface{}) error { - return errors.New(fmt.Sprintf(format, v...)) +func errorf(format string, v ...interface{}) error { + return fmt.Errorf(format, v...) } // Pad a length to align on 4 bytes. |
