// GetHashableFieldValue implements mapping.Fielder interface.
GetHashableFieldValue implements mapping.Fielder interface.
// GetHashableFieldValue implements mapping . Fielder interface .
func (p *Post) GetHashableFieldValue(field *mapping.StructField) (interface{}, error) {
	switch field.Index[0] {
	case 0: 
		return p.ID, nil
	case 1: 
		return p.Title, nil
	case 2: 
		return p.Body, nil
	case 3: 
		return p.Likes, nil
	case 5: 
		return p.BlogID, nil
	}
	return nil, errors.Wrapf(mapping.ErrInvalidModelField, "provided invalid field: '%s' for given model: 'Post'", field.Name())
}
func ( p * Post ) GetHashableFieldValue ( field * mapping . StructField ) ( interface { } , error ) { switch field . Index [ 0 ] { case 0 : return p . ID , nil case 1 : return p . Title , nil case 2 : return p . Body , nil case 3 : return p . Likes , nil case 5 : return p . BlogID , nil } return nil , errors . Wrapf ( mapping . ErrInvalidModelField , " " , field . Name ( ) ) }
GetHashableFieldValue implements mapping.Fielder interface.
GetHashableFieldValue implements mapping . Fielder interface .
// ID // Title // Body // Likes // BlogID