code: func ParseIPAddress(input string) string {
  	host, _ := SplitHostPort(input)
  
  	ip := net.ParseIP(host)
  
  	if ip == nil {
  		return host
  	}
  
  	if ip.IsLoopback() {
  		return "127.0.0.1"
  	}
  
  	return ip.String()
  }
docs: // ParseIPAddress parses an IP address and removes port and/or IPV6 format