我有一个使用包方法dao.ToVendorId的方法,我怎么能嘲笑它?
func group(context context.Execution, dataStore dataStore) (map[string][]VendorItem, map[string]string, error) {
for _,info := range dataStore.Items {
if itemId, err := dao.ToVendorId(context, info.Seller, info.Id); err != nil {
return vendorItems, vendorDataTranslated, err
} else {
//More Code
}
}
return vendorItems, vendorDataTranslated, nil;
}