MCPcopy Index your code
hub / github.com/fogleman/nes / hashFile

Function hashFile

ui/util.go:124–130  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

122}
123
124func hashFile(path string) (string, error) {
125 data, err := ioutil.ReadFile(path)
126 if err != nil {
127 return "", err
128 }
129 return fmt.Sprintf("%x", md5.Sum(data)), nil
130}
131
132func createTexture() uint32 {
133 var texture uint32

Callers 2

PlayGameMethod · 0.85
loadThumbnailMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected