k3s/vendor/github.com/opencontainers/runtime-tools/filepath/separator.go

10 lines
173 B
Go
Raw Normal View History

2019-01-12 04:58:27 +00:00
package filepath
// Separator is an explicit-OS version of path/filepath's Separator.
func Separator(os string) rune {
if os == "windows" {
return '\\'
}
return '/'
}