package main import "strings" var lenses = []string{} // one returns the sum of all hashed values func one(lines []string) int { lenses = strings.Split(lines[0], ",") hash := newHasher() sum := 0 for _, lense := range lenses { sum += hash.run(lense) } return sum }