func cookbookAttachmentsRetrieve(client *cm15.Api, cookbookAttachmentsLocator string) []*cm15.CookbookAttachment { locator := client.CookbookAttachmentLocator(cookbookAttachmentsLocator) cookbookAttachments, err := locator.Index(rsapi.ApiParams{}) if err != nil { fmt.Println("failed to find cookbook attachments: %s", err) } return cookbookAttachments }