Adds some simple utilities for go thing

This commit is contained in:
2016-01-20 15:21:05 +01:00
parent f6fbe8bd4e
commit 261c43184e
2 changed files with 36 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ func init() {
if err != nil {
panic(fmt.Sprintf("Could not open '%s': %s", albumsPath, err))
}
defer CloseOrPanic(f, albumsPath)
defer closeOrPanic(f, albumsPath)
dec := json.NewDecoder(f)
if err = dec.Decode(&albumsDataTest); err != nil {