ParseIndexManifest parses the io.Reader's contents into an IndexManifest.
(r io.Reader)
| 65 | |
| 66 | // ParseIndexManifest parses the io.Reader's contents into an IndexManifest. |
| 67 | func ParseIndexManifest(r io.Reader) (*IndexManifest, error) { |
| 68 | im := IndexManifest{} |
| 69 | if err := json.NewDecoder(r).Decode(&im); err != nil { |
| 70 | return nil, err |
| 71 | } |
| 72 | return &im, nil |
| 73 | } |
no outgoing calls
searching dependent graphs…