title: How to determine if given string is a hostname or an IP address
body: <pre><code>_, err := strconv.ParseInt(host, 10, 64)
  if err == nil {
      hp.IpAddress = host           
  } else {            
      hp.HostName = dbhost 
  }      
  </code></pre>
  
  <p>With host = sealinuxvm11 I'm getting </p>
  
  <pre><code>error strconv.ParseInt: parsing " sealinuxvm11 ": invalid syntax
  </code></pre>
  
  <p>and with host = 192.168.24.10   </p>
  
  <pre><code>strrconv.ParseInt: parsing " 192.168.24.10": invalid syntax
  </code></pre>