Checking in vendor folder for ease of using go get.
This commit is contained in:
parent
7a1251853b
commit
cdb4b5a1d0
3554 changed files with 1270116 additions and 0 deletions
15
vendor/github.com/hashicorp/hcl/testhelper/unix2dos.go
generated
vendored
Normal file
15
vendor/github.com/hashicorp/hcl/testhelper/unix2dos.go
generated
vendored
Normal file
|
@ -0,0 +1,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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue