Skip to content

Instantly share code, notes, and snippets.

@hyuki
Created Apr 9, 2018
Embed
What would you like to do?
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