Example #1
0
func (s *Specials) AsMap() SpecialsMap {
	m := make(SpecialsMap)
	for _, row := range s.rows {
		id := utils.GetString(row, ID_OFERTY)
		val := utils.GetString(row, ID_WYROZNIENIA)
		if arr, ok := m[id]; ok {
			arr = append(arr, val)
			m[id] = arr
		} else {
			m[id] = []string{val}
		}
	}
	return m
}
Example #2
0
func (a *Additional) StringAt(id utils.ColId) string {
	val := utils.GetString(a.Row, id)
	if val == "0" {
		return ""
	} else {
		return val
	}
}
Example #3
0
func (p *Person) DecodeStringAt(id utils.ColId) string {
	return utils.DecodeStr(utils.GetString(p.row, id))
}
Example #4
0
func (p *Person) StringAt(id utils.ColId) string {
	return utils.GetString(p.row, id)
}
Example #5
0
func (o *Offer) StringAt(id utils.ColId) string {
	return utils.GetString(o.row, id)
}