File: separator.go

package info (click to toggle)
golang-github-opencontainers-runtime-tools 0.9.0.109.ge931285-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,212 kB
  • sloc: sh: 559; makefile: 90
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 '/'
}