code: func (path *Path) Clone(isWithdraw bool) *Path {
  	return &Path{
  		parent:           path,
  		IsWithdraw:       isWithdraw,
  		IsNexthopInvalid: path.IsNexthopInvalid,
  		attrsHash:        path.attrsHash,
  	}
  }
docs: // create new PathAttributes