func saveAllOrPanic(hd *hood.Hood, x interface{}) { _, err := hd.SaveAll(x) if err != nil { panic(err) } }