---
title: "waitgroup-by-value"
description: "Pass sync.WaitGroup by pointer."
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.

# waitgroup-by-value

<!-- Code generated by docs/scripts/generate-check-docs.go; DO NOT EDIT. -->

**Default severity:** `error`

Pass sync.WaitGroup by pointer.

## Bad

```go
func wait(group sync.WaitGroup)
```

## Good

```go
func wait(group *sync.WaitGroup)
```

Source: https://strider.gempir.com/lints/waitgroup-by-value/index.mdx
