anchor.diff:  	if id == 0 {
   		return nil, errors.New("Invalid id: it can't be zero")
   	}
  -	var_<%= model_name_underscore %> := <%= @model_name %>{}
  -	err := db.Get(&var_<%= model_name_underscore %>, db.Rebind(`SELECT * FROM <%= table_name %> WHERE id = ? LIMIT 1`), id)
  +	_<%= model_name_underscore %> := <%= @model_name %>{}
  +	err := db.Get(&_<%= model_name_underscore %>, db.Rebind(`SELECT * FROM <%= table_name %> WHERE id = ? LIMIT 1`), id)
   	if err != nil {
   		log.Printf("Error: %v\n", err)
   		return nil, err
   	}
  -	return &var_<%= model_name_underscore %>, nil
  +	return &_<%= model_name_underscore %>, nil
   }
   
   // First<%= @model_name %> find the first one <%= model_name_underscore %> by id ASC order
   func First<%= @model_name %>() (*<%= @model_name %>, error) {
  -	var_<%= model_name_underscore %> := <%= @model_name %>{}
  -	err := db.Get(&var_<%= model_name_underscore %>, db.Rebind(`SELECT * FROM <%= table_name %> ORDER BY id ASC LIMIT 1`))
  +	_<%= model_name_underscore %> := <%= @model_name %>{}
  +	err := db.Get(&_<%= model_name_underscore %>, db.Rebind(`SELECT * FROM <%= table_name %> ORDER BY id ASC LIMIT 1`))
   	if err != nil {
   		log.Printf("Error: %v\n", err)
   		return nil, err
   	}
  -	return &var_<%= model_name_underscore %>, nil
  +	return &_<%= model_name_underscore %>, nil
   }
   
   // First<%= @model_name.pluralize %> find the first N <%= model_name_underscore.pluralize %> by id ASC order
   func First<%= @model_name.pluralize %>(n uint32) ([]<%= @model_name %>, error) {
  -	var_<%= param_name_plural %> := []<%= @model_name %>{}
  +	_<%= param_name_plural %> := []<%= @model_name %>{}
   	sql := fmt.Sprintf("SELECT * FROM <%= table_name %> ORDER BY id ASC LIMIT %v", n)
  -	err := db.Select(&var_<%= param_name_plural %>, db.Rebind(sql))
  +	err := db.Select(&_<%= param_name_plural %>, db.Rebind(sql))
   	if err != nil {
   		log.Printf("Error: %v\n", err)
   		return nil, err
   	}
  -	return var_<%= param_name_plural %>, nil
  +	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) {
  -	var_<%= model_name_underscore %> := <%= @model_name %>{}
  -	err := db.Get(&var_<%= model_name_underscore %>, db.Rebind(`SELECT * FROM <%= table_name %> ORDER BY id DESC LIMIT 1`))
  +	_<%= model_name_underscore %> := <%= @model_name %>{}
  +	err := db.Get(&_<%= model_name_underscore %>, db.Rebind(`SELECT * FROM <%= table_name %> ORDER BY id DESC LIMIT 1`))
   	if err != nil {
   		log.Printf("Error: %v\n", err)
   		return nil, err
   	}
  -	return &var_<%= model_name_underscore %>, nil
  +	return &_<%= model_name_underscore %>, nil
   }
   
   // Last<%= @model_name.pluralize %> find the last N <%= model_name_underscore.pluralize %> by id DESC order
   func Last<%= @model_name.pluralize %>(n uint32) ([]<%= @model_name %>, error) {
  -	var_<%= param_name_plural %> := []<%= @model_name %>{}
  +	_<%= param_name_plural %> := []<%= @model_name %>{}
   	sql := fmt.Sprintf("SELECT * FROM <%= table_name %> ORDER BY id DESC LIMIT %v", n)
  -	err := db.Select(&var_<%= param_name_plural %>, db.Rebind(sql))
  +	err := db.Select(&_<%= param_name_plural %>, db.Rebind(sql))
   	if err != nil {
   		log.Printf("Error: %v\n", err)
   		return nil, err
   	}
  -	return var_<%= param_name_plural %>, nil
  +	return _<%= param_name_plural %>, nil
   }
   
   // Find<%= @model_name.pluralize %> find one or more <%= model_name_underscore.pluralize %> by one or more ids
  
positive.code: 	return lastId, nil
  }
  
  func (var_<%= model_name_underscore %> *<%= @model_name %>) Create() (int64, error) {
  	ok, err := govalidator.ValidateStruct(var_<%= model_name_underscore %>)
  	if !ok {
  		errMsg := "Validate <%= @model_name %> struct error: Unknown error"
  		if err != nil {
  
negative.code: 		log.Println(msg)
  		return nil, errors.New(msg)
  	}
  	_<%= param_name_plural %> := []<%= @model_name %>{}
  	idsHolder := strings.Repeat(",?", len(ids)-1)
  	sql := db.Rebind(fmt.Sprintf(`SELECT * FROM <%= table_name %> WHERE id IN (?%s)`, idsHolder))
  	idsT := []interface{}{}
  	for _,id := range ids {
  		idsT = append(idsT, interface{}(id))
  	}
  	err := db.Select(&_<%= param_name_plural %>, sql, idsT...)
  	if err != nil {
  		log.Printf("Error: %v\n", err)
  		return nil, err
  	}
  	return _<%= param_name_plural %>, nil
  }
  
  // Find<%= @model_name %>By find a single <%= model_name_underscore %> by a field name and a value
  func Find<%= @model_name %>By(field string, val interface{}) (*<%= @model_name %>, error) {
  	_<%= model_name_underscore %> := <%= @model_name %>{}
  	sqlFmt := `SELECT * FROM <%= table_name %> WHERE %s = ? LIMIT 1`
  	sqlStr := fmt.Sprintf(sqlFmt, field)
  	err := db.Get(&_<%= model_name_underscore %>, db.Rebind(sqlStr), val)
  	if err != nil {
  		log.Printf("Error: %v\n", err)
  		return nil, err
  	}
  	return &_<%= model_name_underscore %>, nil
  }
  
  // Find<%= @model_name.pluralize %>By find all <%= param_name_plural %> by a field name and a value
  func Find<%= @model_name.pluralize %>By(field string, val interface{}) (_<%= param_name_plural %> []<%= @model_name %>, err error) {
  	sqlFmt := `SELECT * FROM <%= table_name %> WHERE %s = ?`
  	sqlStr := fmt.Sprintf(sqlFmt, field)
  	err = db.Select(&_<%= param_name_plural %>, db.Rebind(sqlStr), val)
  	if err != nil {
  		log.Printf("Error: %v\n", err)
  		return nil, err
  	}
  	return _<%= param_name_plural %>, nil
  }
  
  // All<%= @model_name.pluralize %> get all the <%= @model_name %> records
  