GetFileHash calculates the hash of a file
(content []byte)
| 528 | |
| 529 | // GetFileHash calculates the hash of a file |
| 530 | func GetFileHash(content []byte) string { |
| 531 | hash := sha256.Sum256(content) |
| 532 | return fmt.Sprintf("%x", hash) |
| 533 | } |
no outgoing calls