code: func (r *ResourceAddress) Copy() *ResourceAddress {
  	if r == nil {
  		return nil
  	}
  
  	n := &ResourceAddress{
  		Path:         make([]string, 0, len(r.Path)),
  		Index:        r.Index,
  		InstanceType: r.InstanceType,
  		Name:         r.Name,
  		Type:         r.Type,
  		Mode:         r.Mode,
  	}
  
  	n.Path = append(n.Path, r.Path...)
  
  	return n
  }
docs: // Copy returns a copy of this ResourceAddress