func EtagHash(data interface{}) (string, error) {
	etag := sha256.New()
	err := json.NewEncoder(etag).Encode(data)
	if err != nil {
		return "", err
	}

	return fmt.Sprintf("%x", etag.Sum(nil)), nil
}
func EtagHash(data interface{}) (string, error) {
	etag := sha256.New()
	err := json.NewEncoder(etag).Encode(data)
	if err != nil {
		return "", err
	}

	return fmt.Sprintf("%x", etag.Sum(nil)), nil
}
func EtagHash ( data interface { } ) ( string , error ) { etag := sha256 . New ( ) err := json . NewEncoder ( etag ) . Encode ( data ) if err != nil { return " " , err } return fmt . Sprintf ( " " , etag . Sum ( nil ) ) , nil }
// EtagHash hashes the provided data and returns the sha256
EtagHash hashes the provided data and returns the sha256