anchor.diff:  	return err
   }
   
  +// UpdateAttributes method is supposed to be used to update <%= @model_name %> records as corresponding update_attributes in Ruby on Rails.
   func (_<%= model_name_underscore %> *<%= @model_name %>) UpdateAttributes(am map[string]interface{}) error {
   	if _<%= model_name_underscore %>.Id == 0 {
   		return errors.New("Invalid Id field: it can't be a zero value")
  
positive.code: 	return _<%= param_name_plural %>, nil
  }
  
  // Last<%= @model_name %> find the last one <%= model_name_underscore %> by id DESC order
  func Last<%= @model_name %>() (*<%= @model_name %>, error) {
  	_<%= model_name_underscore %> := <%= @model_name %>{}
  	err := db.Get(&_<%= model_name_underscore %>, db.Rebind(`SELECT * FROM <%= table_name %> ORDER BY id DESC LIMIT 1`))
  
negative.code: 	return cnt, nil
  }
  
  // Destroy<%= @model_name.pluralize %>Where delete records by a where clause restriction.
  // e.g. Destroy<%= @model_name.pluralize %>Where("name = ?", "John")
  // And this func will not call the association dependent action
  func Destroy<%= @model_name.pluralize %>Where(where string, args ...interface{}) (int64, error) {
  	sql := `DELETE FROM <%= table_name %> WHERE `
  