kops/vendor/github.com/MakeNowJust/heredoc/v2
Ole Markus With ce2e877aeb Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
..
LICENSE Bump heredoc to v2 2020-12-15 10:49:39 +01:00
README.md Bump heredoc to v2 2020-12-15 10:49:39 +01:00
heredoc.go Bump heredoc to v2 2020-12-15 10:49:39 +01:00

README.md

heredoc

Version Build Status GoDoc

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

License

This software is released under the MIT License, see LICENSE.