MCPcopy
hub / github.com/kopia/kopia / parseEmbeddedChecksums

Function parseEmbeddedChecksums

tools/gettool/gettool.go:162–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160var checksumsFileContents string
161
162func 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
175func main() {
176 flag.Parse()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected