|
hace 5 años | |
---|---|---|
.. | ||
BUILD | hace 5 años | |
LICENSE | hace 5 años | |
README.md | hace 5 años | |
heredoc.go | hace 5 años |
Package heredoc provides the here-document with keeping indent.
$ go get github.com/MakeNowJust/heredoc
// usual
import "github.com/MakeNowJust/heredoc"
// shortcuts
import . "github.com/MakeNowJust/heredoc/dot"
package main
import (
"fmt"
. "github.com/MakeNowJust/heredoc/dot"
)
func main() {
fmt.Println(D(`
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, ...
`))
// Output:
// Lorem ipsum dolor sit amet, consectetur adipisicing elit,
// sed do eiusmod tempor incididunt ut labore et dolore magna
// aliqua. Ut enim ad minim veniam, ...
//
}
This software is released under the MIT License, see LICENSE.