refactor: get rid of router/utils.go

most functions end up in other files in the router package, but a few
land in common.
This commit is contained in:
Matthias Radestock committed 2015-11-07 15:45:29 +00:00
1 parent 7a5c910cd5
commit 8bd77c0d47
11 files changed
+114 -125

No files matched your search

+12
View File
@@ -52,3 +52,15 @@ func SetLogLevel(levelname string) {
}
Log.Level = level
}
func CheckFatal(e error) {
if e != nil {
Log.Fatal(e)
}
}
func CheckWarn(e error) {
if e != nil {
Log.Warnln(e)
}
}