code: func AtoiOrPanic(str string) int {
  	i, err := strconv.Atoi(str)
  	if err != nil {
  		log.Fatalf("%v is not valid integer string. err = %v", str, err)
  	}
  	return i
  }
docs: // AtoiOrPanic convert a string to int and panic if failed