13 lines
202 B
Go
13 lines
202 B
Go
package test
|
|
|
|
import (
|
|
"path/filepath"
|
|
"runtime"
|
|
)
|
|
|
|
func NormalizeRelativePath(posixPath string) string {
|
|
if runtime.GOOS == "windows" {
|
|
return filepath.FromSlash(posixPath)
|
|
}
|
|
return posixPath
|
|
}
|