code: func ParseSCPDestination(s string) (login, host, dest string) {
  	parts := strings.SplitN(s, "@", 2)
  	if len(parts) > 1 {
  		login = parts[0]
  		host = parts[1]
  	} else {
  		host = parts[0]
  	}
  	parts = strings.SplitN(host, ":", 2)
  	if len(parts) > 1 {
  		host = parts[0]
  		dest = parts[1]
  	}
  	if len(dest) == 0 {
  		dest = "."
  	}
  	return login, host, dest
  }
docs: // ParseSCPDestination takes a string representing a remote resource for SCP
  // to download/upload, like "user@host:/path/to/resource.txt" and returns
  // 3 components of it