Documentation ¶
Overview ¶
Package heredoc provides the here-document with keeping indent.
Golang supports raw-string syntax.
doc := ` Foo Bar `
But raw-string cannot recognize indent. Thus such content is indented string, equivalent to
"\n\tFoo\n\tBar\n"
I dont't want this!
However this problem is solved by package heredoc.
doc := heredoc.Doc(` Foo Bar `)
It is equivalent to
"Foo\nBar\n"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.