kops/vendor/github.com/MakeNowJust/heredoc
chrislovecnm 609e268a1d gazelle updates with new bazel version 2017-11-05 17:41:53 -07:00
..
dot gazelle updates with new bazel version 2017-11-05 17:41:53 -07:00
BUILD.bazel gazelle updates with new bazel version 2017-11-05 17:41:53 -07:00
LICENSE Update deps in support of drain 2017-03-01 11:56:34 -05:00
README.md Update deps in support of drain 2017-03-01 11:56:34 -05:00
example_test.go Update deps in support of drain 2017-03-01 11:56:34 -05:00
heredoc.go Update deps in support of drain 2017-03-01 11:56:34 -05:00
heredoc_test.go Update deps in support of drain 2017-03-01 11:56:34 -05:00

README.md

#heredoc Build Status Go Walker

##About

Package heredoc provides the here-document with keeping indent.

##Install

$ go get github.com/MakeNowJust/heredoc

##Import

// usual
import "github.com/MakeNowJust/heredoc"
// shortcuts
import . "github.com/MakeNowJust/heredoc/dot"

##Example

package main

import (
	"fmt"
	. "github.com/MakeNowJust/heredoc/dot"
)

func main() {
	fmt.Println(D(`
		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.