This commit is contained in:
Steve Domino 2017-02-09 20:50:15 -07:00
parent 5eb91537ce
commit 629b31217c

View File

@ -185,7 +185,7 @@ func createFish(fish Fish) error {
// create many fish
func createSchool() error {
for _, f := range []Fish{Fish{Type: "red"}, Fish{Type: "blue"}} {
for _, f := range []Fish{{Type: "red"}, {Type: "blue"}} {
if err := db.Write(collection, f.Type, f); err != nil {
return err
}