Пример #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
}
Пример #2
0
func (a *Additional) StringAt(id utils.ColId) string {
	val := utils.GetString(a.Row, id)
	if val == "0" {
		return ""
	} else {
		return val
	}
}
Пример #3
0
func (p *Person) DecodeStringAt(id utils.ColId) string {
	return utils.DecodeStr(utils.GetString(p.row, id))
}
Пример #4
0
func (p *Person) StringAt(id utils.ColId) string {
	return utils.GetString(p.row, id)
}
Пример #5
0
func (o *Offer) StringAt(id utils.ColId) string {
	return utils.GetString(o.row, id)
}