(url string)
| 33 | } |
| 34 | |
| 35 | func Search(url string) (map[string]*PkgInfo, error) { |
| 36 | if strings.HasPrefix(url, "runx:") { |
| 37 | // TODO implement runx search. Also, move this check outside this function: nix package |
| 38 | // should not be handling runx logic. |
| 39 | return map[string]*PkgInfo{}, nil |
| 40 | } |
| 41 | return searchSystem(url, "" /* system */) |
| 42 | } |
| 43 | |
| 44 | func parseSearchResults(data []byte) map[string]*PkgInfo { |
| 45 | var results map[string]map[string]any |
no test coverage detected