func (c *Sample) GetSampleData() { tk.Println("Getting sample data..") availability := m.Availability{} data, _ := availability.GetData(176, c.SqlCtx) tk.Println(data) tk.Println("Process Complete") }
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()) } }