func (e Exception9Checker) IsValid(b m.BankAccount, sc m.SortCodeData, attempt int) bool {
	if !e.Handles(b, sc, attempt) {
		panic("Should be exception of type 9")
	}
	sc.Weights = WeightsForException2Or9(b, sc)
	if (GeneralChecker{}.IsValid(b, sc, attempt)) {
		return true
	}
	b.SortCode = "309634"
	return GeneralChecker{}.IsValid(b, e.Weights[b.SortCode], attempt)
}
Tell if the bank account is valid
package checkers
import (
	m "github.com/AntoineAugusti/moduluschecking/models"
)
type Exception9Checker struct {
	Weights map[string]m.SortCodeData
}
func (e Exception9Checker) Handles(b m.BankAccount, sc m.SortCodeData, attempt int) bool {
	return sc.IsException(9)
}