Implements a basic main function

This commit is contained in:
2016-01-22 18:06:33 +01:00
parent fe6e32ec7b
commit f407c1cf3e
6 changed files with 431 additions and 67 deletions

View File

@@ -16,7 +16,8 @@ func closeOrPanic(c io.Closer, description string) {
// close and ignore any error
func closeIgnore(c io.Closer) {
c.Close()
// we simply ignore any error
_ = c.Close()
}
// close or log the failure. need to provide the %s in format