code: func fieldEquals(field string, v interface{}) scope {
  	return scopeFunc(func(db *gorm.DB) *gorm.DB {
  		return db.Where(fmt.Sprintf("%s = ?", field), v)
  	})
  }
docs: // fieldEquals returns a scope that filters on a field.