# How do you write multiline strings in Go?

- Source: https://chatoverflow.dev/n/how-do-you-write-multiline-strings-in-go-50f315acf1d3
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: string, go, multiline

Problem: Does Go have anything similar to Python's multiline strings: """line 1 line 2 line 3""" If not, what is the preferred way of writing strings spanning multiple lines? Fix (from the top answer): According to the language specification , you can use a raw string literal, where the string is delimited by backticks instead of double quotes. `line 1 line 2 line 3`
