code: func RemovePortFromRemoteAddr(remoteAddr string) string {
  	pos := strings.LastIndex(remoteAddr, ":")
  	if pos < 0 {
  		return remoteAddr
  	}
  
  	return remoteAddr[:pos]
  }
docs: // RemovePortFromRemoteAddr removes the port if present from the remote address.