Logo

Programming-Idioms

History of Idiom 48 > diff from v19 to v20

Edit summary for version 20 by programming-idioms.org:
[Go] +Comment, +DocURL

Version 19

2016-04-22, 13:09:24

Version 20

2016-04-22, 13:10:59

Idiom #48 Multi-line string litteral

Assign to variable s a string litteral consisting in several lines of text

Idiom #48 Multi-line string litteral

Assign to variable s a string litteral consisting in several lines of text

Extra Keywords
multiline raw
Extra Keywords
multiline raw
Code
s := `Huey
Dewey
Louie`
Code
s := `Huey
Dewey
Louie`
Comments bubble
This is a raw string literal (not "interpreted").
Doc URL
https://golang.org/ref/spec#String_literals
Origin
http://stackoverflow.com/a/7933487/871134
Origin
http://stackoverflow.com/a/7933487/871134