()
| 160 | var checksumsFileContents string |
| 161 | |
| 162 | func parseEmbeddedChecksums() map[string]string { |
| 163 | m := map[string]string{} |
| 164 | |
| 165 | s := bufio.NewScanner(strings.NewReader(checksumsFileContents)) |
| 166 | for s.Scan() { |
| 167 | p := strings.Split(s.Text(), ": ") |
| 168 | |
| 169 | m[p[0]] = p[1] |
| 170 | } |
| 171 | |
| 172 | return m |
| 173 | } |
| 174 | |
| 175 | func main() { |
| 176 | flag.Parse() |