mirror of https://github.com/kubernetes/kops.git
				
				
				
			
				
					
						
							This also bumps go mod version to 1.19  | 
			||
|---|---|---|
| .. | ||
| v2 | ||
| LICENSE | ||
| README.md | ||
| heredoc.go | ||
		
			
				
				README.md
			
		
		
			
			
		
	
	heredoc
About
Package heredoc provides the here-document with keeping indent.
Install
$ go get github.com/MakeNowJust/heredoc
Import
// usual
import "github.com/MakeNowJust/heredoc"
Example
package main
import (
	"fmt"
	"github.com/MakeNowJust/heredoc"
)
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
License
This software is released under the MIT License, see LICENSE.