kops/vendor/github.com/MakeNowJust/heredoc
Justin Santa Barbara 6b6f9db0ef Run make dep-ensure to use dep for vendor directory 2018-02-04 22:08:16 -05:00
..
BUILD.bazel Run make dep-ensure to use dep for vendor directory 2018-02-04 22:08:16 -05:00
LICENSE Update vendor 2018-02-03 21:19:32 -05:00
README.md Update vendor 2018-02-03 21:19:32 -05:00
heredoc.go Update vendor 2018-02-03 21:19:32 -05:00

README.md

heredoc CircleCI 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.