Sign in
edge
/
apidVerifyApiKey
/
c48842a30a9f78ea4fb4fbbc2a69bbe693683cfa
/
.
/
vendor
/
github.com
/
hashicorp
/
hcl
/
testhelper
/
unix2dos.go
blob: 827ac6f1ed981ceb65e4b891e6869de64fdc1ade [
file
] [
log
] [
blame
]
package testhelper
import (
"runtime"
"strings"
)
// Converts the line endings when on Windows
func Unix2dos(unix string) string {
if runtime.GOOS != "windows" {
return unix
}
return strings.Replace(unix, "\n", "\r\n", -1)
}