nvidia-container-toolkit/vendor/github.com/opencontainers/runtime-tools/filepath/separator.go
Evan Lezar 48d5a1cd1a Update go vendoring
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-03-29 11:05:41 +02:00

10 lines
173 B
Go

package filepath
// Separator is an explicit-OS version of path/filepath's Separator.
func Separator(os string) rune {
if os == "windows" {
return '\\'
}
return '/'
}