13 lines
207 B
Go
13 lines
207 B
Go
package test
|
|
|
|
import (
|
|
"runtime"
|
|
"strings"
|
|
)
|
|
|
|
func NormalizeRelativePath(posixPath string) string {
|
|
if runtime.GOOS == "windows" {
|
|
return strings.ReplaceAll(posixPath, "/", "\\")
|
|
}
|
|
return posixPath
|
|
}
|