func add_to_set(set s.Set, element string) (string, error) { result := clear_address_string(element) if result != "" { set.Add(result) return result, nil } return element, errors.New(fmt.Sprintf("can not imply %+v ==> %+v", element, result)) }
func _get_address_slice(s s.Set, info map[string]t.AddressF) []t.AddressF { result := []t.AddressF{} iter_chan := s.Iter() for el := range iter_chan { a_h := el.(string) if address, ok := info[a_h]; ok { result = append(result, address) } } return result }