---
title: "ineffective-pointer-copy"
description: "Detect pointer round trips that do not copy values."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ineffective-pointer-copy

**Default severity:** `error`

Go simplifies `&*pointer` to `pointer` and `*&value` to `value`. Neither form
copies the underlying data, so code using one as a copy operation is
misleading and usually incorrect.

## Bad

```go
copy := &*pointer
```

## Good

```go
copy := *pointer
```

Source: https://strider.gempir.com/lints/ineffective-pointer-copy/index.mdx
