File: separator.go

package info (click to toggle)
golang-github-opencontainers-runtime-tools 0.8.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,112 kB
  • sloc: sh: 544; makefile: 102
file content (9 lines) | stat: -rw-r--r-- 173 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
package filepath

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