.github
Merge pull request #13 from makenowjust/gh-actionsdot
Update copyright year 2024 -> 2025example_test.go
Update copyright year 2024 -> 2025go.mod
fix: import pathheredoc_test.go
Update copyright year 2024 -> 2025heredoc.go
Update copyright year 2024 -> 2025LICENSE
Update copyright year 2024 -> 2025README.md
Add GitHub Actions badge to READMEheredoc
About
Package heredoc provides the here-document with keeping indent.
Import
import "github.com/MakeNowJust/heredoc/v2"Example
package main
import (
"fmt"
"github.com/MakeNowJust/heredoc/v2"
)
func main() {
fmt.Println(heredoc.Doc(`
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, ...
//
}API Document
heredoc package - github.com/MakeNowJust/heredoc/v2 - pkg.go.dev
License
This software is released under the MIT License, see LICENSE.