N6OKSX7XMWFUFAJOG6FSS4S462ZZYDZNPKDLJIJ6IAI33TJRLWMQC // Go through the captions and get captioned itemsfor _, caption := range captions {item := caption.CaptionedItemif err != nil {return nil, err}results = append(results, item)}
// // Go through the captions and get captioned items// for _, caption := range captions {// item := caption.CaptionedItem// if err != nil {// return nil, err// }// results = append(results, item)// }
for _, term := range terms {tResult, err := idx.LookupWord("text", term)if err != nil {return []Caption{}, err}
// for _, term := range terms {// tResult, err := idx.LookupWord("text", term)// if err != nil {// return []Caption{}, err// }
if err == nil {var captions []Captionfor _, key := range keys {caption, err := GetCaptionByKey(key, gm, gpart)if err != nil {return captions, err}captions = append(captions, caption)}return captions, nil}}return []Caption{}, idxerr}
// if err == nil {// var captions []Caption// for _, key := range keys {// caption, err := GetCaptionByKey(key, gm, gpart)// if err != nil {// return captions, err// }