Skip to content

Instantly share code, notes, and snippets.

@hyuki
Created April 9, 2018 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyuki/3893d7b6f741a7383e1e3a904e11e02f to your computer and use it in GitHub Desktop.
Save hyuki/3893d7b6f741a7383e1e3a904e11e02f to your computer and use it in GitHub Desktop.
raw string literalsの練習
package main
import (
"fmt"
)
func main() {
prolog := `
<!DOCTYPE html>
<html>
<body>
`
epilog := `
</body>
</html>
`
fmt.Println(prolog)
fmt.Println("<h1>Hello!</h1>")
fmt.Println(epilog)
}
@hyuki
Copy link
Author

hyuki commented Apr 9, 2018


<!DOCTYPE html>
<html>
<body>

<h1>Hello!</h1>

</body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment