// Hash returns the SHA-1 of an object returning a lowercase hex string
Hash returns the SHA-1 of an object returning a lowercase hex string
// Hash returns the SHA - 1 of an object returning a lowercase hex string
func (o *Object) Hash(t hash.Type) (string, error) {
	if t != hash.SHA1 {
		return "", hash.ErrUnsupported
	}
	return o.sha1, nil
}
func ( o * Object ) Hash ( t hash . Type ) ( string , error ) { if t != hash . SHA1 { return " " , hash . ErrUnsupported } return o . sha1 , nil }
Hash returns the SHA-1 of an object returning a lowercase hex string
Hash returns the SHA - 1 of an object returning a lowercase hex string