File: separator.go

package info (click to toggle)
golang-github-opencontainers-runtime-tools 0.9.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,108 kB
  • sloc: sh: 557; makefile: 104
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 '/'
}