code: func findRule(chain *fakeChain, rule string) int {
  	for i, candidate := range chain.rules {
  		if rule == candidate {
  			return i
  		}
  	}
  	return -1
  }
docs: // Returns index of rule in array; < 0 if rule is not found