hugo/docs/content/en/getting-started/glossary/raw-string-literal.md
2025-01-23 09:47:46 +01:00

5 lines
410 B
Markdown

---
title: raw string literal
---
Raw string literals are character sequences between backticks, as in \`bar\`. Within the backticks, any character may appear except a backtick. Backslashes have no special meaning and the string may contain newlines. Carriage return characters (`\r`) inside raw string literals are discarded from the raw string value. See [details](https://go.dev/ref/spec#String_literals).