Russ Cox | 2b1c9b4 | 2012-02-16 23:49:30 -0500 | [diff] [blame] | 1 | // compile |
Rob Pike | acaba18 | 2009-06-15 21:13:28 -0700 | [diff] [blame] | 2 | |
| 3 | // Copyright 2009 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package main |
| 8 | |
Russ Cox | 5d5904b | 2009-06-29 17:46:22 -0700 | [diff] [blame] | 9 | // Multi-line string literal now allowed. |
| 10 | |
| 11 | const s = ` |
| 12 | Hello, World! |
| 13 | ` |
Rob Pike | acaba18 | 2009-06-15 21:13:28 -0700 | [diff] [blame] | 14 | |
| 15 | func main() { |
Russ Cox | 5d5904b | 2009-06-29 17:46:22 -0700 | [diff] [blame] | 16 | print(s) |
Rob Pike | acaba18 | 2009-06-15 21:13:28 -0700 | [diff] [blame] | 17 | } |