code: func getClientIP(client *http.Client, debug bool) (addr string, err error) {
  	resp, err := client.Get(getIPURL)
  	if err != nil {
  		return "", err
  	}
  	defer resp.Body.Close()
  
  	clientIP, err := ioutil.ReadAll(resp.Body)
  	if err != nil {
  		return "", err
  	}
  
  	if debug {
  		log.Println("Client IP:", string(clientIP))
  	}
  	return string(clientIP), nil
  }
docs: // getClientIP returns the client's public IP address.
  // It uses namecheap's IP discovery service to perform the lookup.