ARO-RP/vendor/github.com/MakeNowJust/heredoc
darthhexx 1c4e98933e Vendor installer release 4.10
Switches to go.1.17, OCP 4.10, and Kubernetes 1.23 modules.
2022-05-25 14:49:12 +10:00
..
LICENSE make vendor 2021-05-27 16:41:03 +01:00
README.md make vendor 2021-05-27 16:41:03 +01:00
heredoc.go make vendor 2021-05-27 16:41:03 +01:00

README.md

heredoc

Build Status GoDoc

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.