1 2 3 4 5 6 7
package acme var canSolve = make(map[ChallengeType]Solver) func RegisterSolver(c ChallengeType, s Solver) { canSolve[c] = s }