Esempio n. 1
0
func (c *Sample) UpdateSampleData() {
	id := 1
	data := new(m.Availability)
	e := c.GetById(data, id, "id")
	data.PrctWUF = 1.2
	c.Update(data, id, "id")
	if e != nil {
		tk.Errorf("Unable to remove: %s \n", e.Error())
	}
}