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