26 lines
414 B
Go
26 lines
414 B
Go
|
/*
|
||
|
Copyright 2020 VMware, Inc.
|
||
|
SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
|
||
|
package here
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
|
||
|
"github.com/MakeNowJust/heredoc/v2"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
tab = "\t"
|
||
|
fourSpaces = " "
|
||
|
)
|
||
|
|
||
|
func Doc(s string) string {
|
||
|
return strings.ReplaceAll(heredoc.Doc(s), tab, fourSpaces)
|
||
|
}
|
||
|
|
||
|
func Docf(raw string, args ...interface{}) string {
|
||
|
return strings.ReplaceAll(heredoc.Docf(raw, args...), tab, fourSpaces)
|
||
|
}
|