// GetFieldValue implements mapping.Fielder interface.
GetFieldValue implements mapping.Fielder interface.
// GetFieldValue implements mapping . Fielder interface .
func (b *Blog) GetFieldValue(field *mapping.StructField) (interface{}, error) {
	switch field.Index[0] {
	case 0: 
		return b.ID, nil
	case 1: 
		return b.CreatedAt, nil
	case 2: 
		return b.Title, nil
	case 5: 
		return b.TopPostID, nil
	}
	return nil, errors.Wrapf(mapping.ErrInvalidModelField, "provided invalid field: '%s' for given model: Blog'", field.Name())
}
func ( b * Blog ) GetFieldValue ( field * mapping . StructField ) ( interface { } , error ) { switch field . Index [ 0 ] { case 0 : return b . ID , nil case 1 : return b . CreatedAt , nil case 2 : return b . Title , nil case 5 : return b . TopPostID , nil } return nil , errors . Wrapf ( mapping . ErrInvalidModelField , " " , field . Name ( ) ) }
GetFieldValue implements mapping.Fielder interface.
GetFieldValue implements mapping . Fielder interface .
// ID // CreatedAt // Title // TopPostID