mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-03 22:27:44 +00:00
Add vendor files for spf13/viper
This commit is contained in:
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)
|
||||
}
|
Reference in New Issue
Block a user