Debian Codegraph @

/

debian golang-github-makenowjust-heredoc-v2 2.0.1-2debian golang-github-makenowjust-heredoc-v2-dev gomod github.com/MakeNowJust/heredoc/v2 debiangoinimakefilemarkdownshellyaml 19 files · 94 symbols
View dependency graph

Depends on

README (full)

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.

dir .circleci/
dir .github/
dir debian/
dir dot/
file .gitignore
file LICENSE
file README.md
file example_test.go
file go.mod
file heredoc.go
file heredoc_test.go