| 1 | package bankinfo |
| 2 | |
| 3 | // BicInfo holds the BIC data associated with a given bank institute. |
| 4 | type BicInfo struct { |
| 5 | BIC string |
| 6 | BankID string |
| 7 | } |
| 8 | |
| 9 | type sortableBicInfos []BicInfo |
| 10 | |
| 11 | func (s sortableBicInfos) Len() int { return len(s) } |
| 12 | func (s sortableBicInfos) Swap(a, b int) { s[a], s[b] = s[b], s[a] } |
| 13 | func (s sortableBicInfos) Less(a, b int) bool { return s[a].BankID < s[b].BankID } |