func (s File) GetHash(hashAlgorithm HashAlgorithm) string {
	switch hashAlgorithm {
	case HashAlgorithmMd5:
		return s.Checksum
	case HashAlgorithmOshash:
		return s.OSHash
	default:
		panic("unknown hash algorithm")
	}
}
// GetHash returns the hash of the scene, based on the hash algorithm provided. If
// hash algorithm is MD5, then Checksum is returned. Otherwise, OSHash is returned.
GetHash returns the hash of the scene, based on the hash algorithm provided. If
hash algorithm is MD5, then Checksum is returned. Otherwise, OSHash is returned.
// GetHash returns the hash of the scene based on the hash algorithm provided . If // hash algorithm is MD5 then Checksum is returned . Otherwise OSHash is returned .
func (s File) GetHash(hashAlgorithm HashAlgorithm) string {
	switch hashAlgorithm {
	case HashAlgorithmMd5:
		return s.Checksum
	case HashAlgorithmOshash:
		return s.OSHash
	default:
		panic("unknown hash algorithm")
	}
}
func ( s File ) GetHash ( hashAlgorithm HashAlgorithm ) string { switch hashAlgorithm { case HashAlgorithmMd5 : return s . Checksum case HashAlgorithmOshash : return s . OSHash default : panic ( " " ) } }
GetHash returns the hash of the scene, based on the hash algorithm provided.
GetHash returns the hash of the scene based on the hash algorithm provided .