forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.go
35 lines (31 loc) · 782 Bytes
/
dot.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2014 TSUYUSATO Kitsune
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
// Package heredoc_dot is the set of shortcuts for dot import.
//
// For example:
// package main
//
// import (
// "fmt"
// "runtime"
// . "github.com/MakeNowJust/heredoc/dot"
// )
//
// func main() {
// fmt.Printf(D(`
// GOROOT: %s
// GOARCH: %s
// GOOS : %s
// `), runtime.GOROOT(), runtime.GOARCH, runtime.GOOS)
// }
package heredoc_dot
import "github.com/MakeNowJust/heredoc"
// Shortcut heredoc.Doc
func D(raw string) string {
return heredoc.Doc(raw)
}
// Shortcut heredoc.Docf
func Df(raw string, args ...interface{}) string {
return heredoc.Docf(raw, args...)
}