code: func (intstr *IntOrString) IntValue() int {
  	if intstr.Type == String {
  		i, _ := strconv.Atoi(intstr.StrVal)
  		return i
  	}
  	return int(intstr.IntVal)
  }
docs: // IntValue returns the IntVal if type Int, or if
  // it is a String, will attempt a conversion to int.