karmada/vendor/github.com/MakeNowJust/heredoc
RainbowMango d47fc79101 Bump Golang version from 1.16 to 1.17
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-02-17 17:58:56 +08:00
..
LICENSE change vendor 2021-10-12 17:09:52 +08:00
README.md change vendor 2021-10-12 17:09:52 +08:00
heredoc.go change vendor 2021-10-12 17:09:52 +08: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.