(filenames []string)
| 596 | } |
| 597 | |
| 598 | func loadDictionaries(filenames []string) ([][]string, error) { |
| 599 | dicts := make([][]string, len(filenames)) |
| 600 | for i, name := range filenames { |
| 601 | dict, err := loadFileWithCache(name) |
| 602 | if err != nil { |
| 603 | return nil, err |
| 604 | } |
| 605 | dicts[i] = dict |
| 606 | } |
| 607 | return dicts, nil |
| 608 | } |
| 609 | |
| 610 | func LoadWordlist(word string, dictNames []string) ([]string, error) { |
| 611 | if wl, ok := wordlistCache[word+strings.Join(dictNames, ",")]; ok { |
no test coverage detected