vendor dependencies with dep
This commit is contained in:
parent
93d8310491
commit
1384296a47
2712 changed files with 965742 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