anchor.diff:      <%- else -%>
   	am["<%= model_name_underscore %>_id"] = var_<%= model_name_underscore %>.Id
   	<%- end -%>
  -	err := Create<%= v[:class_name] %>(am)
  +	_, err := Create<%= v[:class_name] %>(am)
   	return err
   }
   	<%- end -%>
  
positive.code: 		return nil, errors.New(msg)
  	}
  	var_<%= param_name_plural %> := []<%= @model_name %>{}
  	idsStr := strings.Trim(strings.Replace(fmt.Sprint(ids), " ", ",", -1), "[]")
  	sql := fmt.Sprintf(`SELECT * FROM <%= table_name %> WHERE id IN (%s)`, idsStr)
  	err := db.Select(&var_<%= param_name_plural %>, sql)
  	if err != nil {
  		log.Printf("Error: %v\n", err)
  		return nil, err
  
negative.code: 	_, err = stmt.Exec(id)
  	if err != nil {
  		return err
  	}
  	<%- [:has_many, :has_one].each do |ass| -%>
  		<%- ass_cols = @struct_info[:assoc_info][ass] -%>
  		<%- unless ass_cols.empty? -%>
  			<%- ass_cols.each_value do |opts| -%>
  				<%- if opts.key? :dependent -%>
  					<%- if opts[:through] -%>
  						<%= opts[:class_name].underscore %>_ids, err := <%= opts[:through].to_s.singularize.camelize %>IntCol("<%= opts[:class_name].underscore %>_id", "<%= model_name_underscore %>_id = ?", var_<%= model_name_underscore %>.Id)
  						if err != nil {
  							return err
  						}
  						_, err = Destroy<%= opts[:class_name].pluralize %>(<%= opts[:class_name].underscore %>_ids...)
  						if err != nil {
  							return err
  						}
  						_, err = Destroy<%= opts[:through].to_s.pluralize.camelize %>Where("<%= model_name_underscore %>_id = ?", var_<%= model_name_underscore %>.Id)
  						if err != nil {
  							return err
  						}
  					<%- else -%>
  						<%- if opts.key? :foreign_key -%>
  							Destroy<%= opts[:class_name].pluralize %>Where("<%= opts[:foreign_key] %> = ?", id)
  						<%- else -%>
  							Destroy<%= opts[:class_name].pluralize %>Where("<%= model_name_underscore %>_id = ?", id)
  						<%- end -%>
  					<%- end -%>
  				<%- end -%>
  			<%- end -%>
  		<%- end -%>
  	<%- end -%>
  	return nil
  }
  
  func Destroy<%= @model_name.pluralize %>(ids ...int64) (int64, error) {
  	if len(ids) == 0 {
  		msg := "At least one or more ids needed"
  		log.Println(msg)
  		return 0, errors.New(msg)
  	}
  	idsHolder := strings.Repeat(",?", len(ids)-1)
  	sql := fmt.Sprintf(`DELETE FROM <%= table_name %> WHERE id IN (?%s)`, idsHolder)
  	idsT := []interface{}{}
  	for _,id := range ids {
  		idsT = append(idsT, interface{}(id))
  	}
  	stmt, err := db.Preparex(sql)
  	result, err := stmt.Exec(idsT...)
  	if err != nil {
  		return 0, err
  	}
  	cnt, err := result.RowsAffected()
  	if err != nil {
  		return 0, err
  	}
  	<%- [:has_many, :has_one].each do |ass| -%>
  		<%- ass_cols = @struct_info[:assoc_info][ass] -%>
  