blob: 827ac6f1ed981ceb65e4b891e6869de64fdc1ade (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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)
}
|