Adds some simple utilities for go thing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user