code: func ValidateIPAddress(val string) (string, error) {
  	var ip = net.ParseIP(strings.TrimSpace(val))
  	if ip != nil {
  		return ip.String(), nil
  	}
  	return "", fmt.Errorf("%s is not an ip address", val)
  }
docs: // ValidateIPAddress validates an Ip address.