summaryrefslogtreecommitdiffstats
path: root/docs/content/en/quick-reference/glossary/raw-string-literal.md
blob: 7465c6837b176384ef8e1c7f463843a16aec4aef (plain) (blame)
1
2
3
4
5
6
---
title: raw string literal
reference: https://go.dev/ref/spec#String_literals
---

A _raw string literal_ is a 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.