code: func (r *remoteClient) Get() (*remote.Payload, error) {
  	ctx := context.Background()
  
  	sv, err := r.client.StateVersions.Current(ctx, r.workspace.ID)
  	if err != nil {
  		if err == tfe.ErrResourceNotFound {
  			// If no state exists, then return nil.
  			return nil, nil
  		}
  		return nil, fmt.Errorf("Error retrieving state: %v", err)
  	}
  
  	state, err := r.client.StateVersions.Download(ctx, sv.DownloadURL)
  	if err != nil {
  		return nil, fmt.Errorf("Error downloading state: %v", err)
  	}
  
  	// If the state is empty, then return nil.
  	if len(state) == 0 {
  		return nil, nil
  	}
  
  	// Get the MD5 checksum of the state.
  	sum := md5.Sum(state)
  
  	return &remote.Payload{
  		Data: state,
  		MD5:  sum[:],
  	}, nil
  }
docs: // Get the remote state.