---
title: debug.VisualizeSpaces
description: Returns the given string with spaces replaced by a visible string.
categories: []
keywords: []
params:
  functions_and_methods:
    aliases: []
    returnType: string
    signatures: [debug.VisualizeSpaces STRING]
---

```go-html-template
{{ debug.VisualizeSpaces "foo  bar" }} → foo[SPACE][SPACE]bar
```
