func (model *DomainsModel) ScanItem(row db.ScannableStruct) (interface{}, error) { domainsItem := Domain{} err := row.Scan( &domainsItem.domain_id, &domainsItem.domain, &domainsItem.comment, ) return domainsItem, err }
func (model *ServicesModel) ScanItem(row db.ScannableStruct) (interface{}, error) { servicesItem := Service{} err := row.Scan( &servicesItem.service_id, &servicesItem.title, &servicesItem.addr, ) return servicesItem, err }