> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# go-string-concat-in-loop

> String concatenation in a Go loop allocates repeatedly; use strings.Builder.

## What it flags

String concatenation in a Go loop allocates repeatedly; use strings.Builder.

## Example

Repeated `+=` string concatenation inside a Go `for` loop instead of `strings.Builder`.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "go-string-concat-in-loop": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.